<分区>
在我将 jquery-ui 放在第一行文件中,然后是 Bootstrap 文件后,我仍然收到此错误:
Uncaught Error: cannot call methods on button prior to initialization; attempted to call method 'loading'.
有人能帮忙吗?
<分区>
在我将 jquery-ui 放在第一行文件中,然后是 Bootstrap 文件后,我仍然收到此错误:
Uncaught Error: cannot call methods on button prior to initialization; attempted to call method 'loading'.
有人能帮忙吗?
最佳答案
这是jquery-ui和bootstrap-button插件冲突造成的。在 事实上 jquery-ui 代码 js 代码应该放在 bootstrap.js 之前,那 解决问题。
只需将 jquery-ui 插件放在 bootstrap.js 之前
关于javascript - Uncaught Error : cannot call methods on button prior to initialization; attempted to call method 'loading' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30190437/