easy ui Uncaught Error: cannot call methods on tooltip prior to initialization; attempted to call method 'hide'

今天bootstrap 和easy ui混用时候报了这么一个错误,本来可以点击编辑的,但是现在一点击就报错,

后来看到如下一个连接可以解决错误原来是

https://stackoverflow.com/questions/30190437/uncaught-error-cannot-call-methods-on-button-prior-to-initialization-attempted

 

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.

Just put jquery-ui plugins before bootstrap.js

 

 根据如上说明,将 jquery-ui.min.js 放在bootstrap那些js的前面,如果还不能解决就吧所有bootstrap的js放在最后面,应该就可以解决了

<script src="/static/plugins/jquery-ui/jquery-ui.min.js"></script>
<script src="/static/plugins/bootstrap-select/bootstrap-select.min.js"></script>
<script src="/static/plugins/js.cookie.js"></script>
<script src="/static/plugins/jquery-ui/jquery-ui.min.js"></script>
<script src="/static/plugins/bootstrap-fileinput/js/fileinput.js"></script>
<script src="/static/plugins/bootstrap-fileinput/js/plugins/canvas-to-blob.js"></script>
<script src="/static/plugins/bootstrap-fileinput/js/fileinput_locale_zh.js"></script>

修改后再点击不在报错

猜你喜欢

转载自www.cnblogs.com/qinhan/p/9082625.html
今日推荐