在 jquery-ui 中合并 json

发布于 2024-08-22 14:30:25 字数 187 浏览 11 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文