In Javascript, what is an options object?

后端 未结 4 1231
忘掉有多难
忘掉有多难 2021-02-12 13:33

Now I have googling this a lot, but I cant seem to find what I am looking for. I am not talking about the options object that does drop down menus, I am talking about seeing st

4条回答
  •  时光说笑
    2021-02-12 14:04

    I would guess that the options object is just JSON. It is created from

    { "options": { "remove": true, "enable": false, "instance": object }
    

    That is how most Javascript libraries load/set options. You can reference the objects properties just like you are doing in the question.

提交回复
热议问题