543   CSS jQuery JS

bootstrap 的 button 加载 loading 效果出现异常

Uncaught Error: cannot call methods on button prior to initialization; attempted to call method 'loading'.

之前是好的,后来加多几个js文件就报上述错误了,
google一番,果真如此啊,
这是因为引用了 jquery-ui.min.js 与 bootstrap.min.js 的冲突,只要把 jquery-ui.min.js 放在 bootstrap.min.js 之前即可解决。
google链接:
http://stackoverflow.com/questions/30190437/uncaught-error-cannot-call-methods-on-button-prior-to-initialization-attempted




Leave a Reply

Your email address will not be published. Required fields are marked *