在 jquery-ui 中合并 json
jquery ui 使用什么函数来覆盖 init 时传递给插件的默认选项?
我的插件有一个默认为“false”的选项,如果您指定“true”,它会执行其他操作。如果你指定一个对象(一个嵌套了更多 json 的 json),你就会打开一大堆可能性。我想为这些选项设置默认值我知道 ui 对标准“默认”集做了同样的事情,那么我在哪里可以找到该功能?
What function does jquery ui use to override the default options passed to a plugin on init?
My plugin has an option that defaults to "false" and if you specify "true" it does something else. And if you specify an object (a json with more jsons nested) you open a whole bunch of possibilities. i want to set defaults for these options i know that ui is doing the same thing for standard "defaults" set, so where can i find that function?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题在 jQuery 论坛上得到了回答
它是jQuery.extend
This question was answered on the jQuery forum
It's jQuery.extend