阅读

bootstrap 使用button loading状态错误

javascript  2016-01-11 19:26

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

原因:由于bootstrap 和 jquery-ui 冲突引起的。

方法:调整载入的js顺序,使jquyer-ui 插件先载入然后再载入 bootstrap 。