使用jquery-ui时和bootstrap冲突,报错Uncaught Error: cannot call methods on button prior to initialization; attempted to call method 'loading'.
解决方法:将引用bootstrap.js之前引用jquery-ui.js
本文介绍了解决在使用jQuery UI时遇到与Bootstrap框架冲突的问题。主要错误为Uncaught Error: cannot call methods on button prior to initialization; attempted to call method 'loading'。解决办法是调整文件加载顺序,确保在引入bootstrap.js之前先加载jquery-ui.js。
使用jquery-ui时和bootstrap冲突,报错Uncaught Error: cannot call methods on button prior to initialization; attempted to call method 'loading'.
解决方法:将引用bootstrap.js之前引用jquery-ui.js
6601
1426
2110
2970
548

被折叠的 条评论
为什么被折叠?