내용은 있었는데 이해를 못했거늘.. 오늘 해보니 되긴하네 췟 -_-

아래와 같은 식으로 'data-'를 접두로 붙이고

문장하나하나를 전부 - 로 토막내주면 된다.

그런 이유로 disableGl은 data-disable-Gl로 변환이 되어 설정하면 된다

<div class="jsmpeg" data-url="ws://localhost:6424" data-disable-gl="true"> 


Note that camelCased options have to be hyphenated when used as data attributes. E.g. decodeFirstFrame: true becomes data-decode-first-frame="true" for the HTML element. 

[링크 : https://github.com/phoboslab/jsmpeg]

'Programming > javascript & HTML' 카테고리의 다른 글

formdata dump  (0) 2018.10.24
js toHexString()  (0) 2018.10.23
js setinterval  (0) 2018.10.16
ajax each  (0) 2018.10.16
canvas clearRect  (0) 2018.10.15
Posted by 구차니