未捕获错误:在初始化之前无法调用按钮上的方法;试图调用方法'加载' [英] Uncaught Error: cannot call methods on button prior to initialization; attempted to call method 'loading'
本文介绍了未捕获错误:在初始化之前无法调用按钮上的方法;试图调用方法'加载'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我将jquery-ui放在第一行文件中后跟bootstrap文件后,我仍然收到此错误:
After I placed the jquery-ui in first line file followed by bootstrap file I'm still getting this error:
未捕获错误:初始化之前无法调用按钮上的方法;试图调用方法'加载'。
Uncaught Error: cannot call methods on button prior to initialization; attempted to call method 'loading'.
任何人都可以帮忙吗?
推荐答案
这是由jquery-ui和bootstrap-button插件冲突引起的。在
中,事实jquery-ui代码js代码应该在bootstrap.js之前,并且
解决了这个问题。
It's caused by jquery-ui and bootstrap-button plugins conflict. In fact jquery-ui code js code should go before bootstrap.js, and that solves the problem.
只需放入jquery-ui插件在bootstrap.js之前
Just put jquery-ui plugins before bootstrap.js
这篇关于未捕获错误:在初始化之前无法调用按钮上的方法;试图调用方法'加载'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文