天天看点

cannot call methods on tooltip prior to initialization; attempted to call method 'hide'

报错提示信息:cannot call methods on tooltip prior to initialization; attempted to call method 'hide'

这个问题报错jquery.js出错,让我很难找出问题,定位说是我的方法$("#id").combotree(),而这个方法是eayui的js方法为什么报它的错误呢,我的页面第一次访问正常,结果测试中发现是点击包含jquery-ui.js的页面后就出现问题,这样一旦出问题所有页面全部打不开。

      经过多次分析定位是导入jquery-ui.js文件后引起,最终解决jquery.js先导入,再导入jquery-ui.js,bootstrap.js,就问题全解决。