Uncaught Error: Bootstrap tooltips require Tether (http://github.hubspot.com/tether/)


引用bootstrap之后报这个错误,错误出在bootstrap.js文件中,原语句是:

if(void 0===window.Tether)
  throw new Error("Bootstrap tooltips require Tether (http://github.hubspot.com/tether/)"); 

于是,在文件头部引入tether

    <link href="//cdn.bootcss.com/tether/1.3.6/css/tether.min.css" rel="stylesheet">
    <script src="//cdn.bootcss.com/tether/1.3.6/js/tether.min.js"></script>

结果依旧报错,原因是bootstrap.js依赖tether.js,所以必须把tether放在bootstrap.js之前进行引用.

在前端中,在任何一门编程语言中,越编代码越多,越来越要依靠轮子来减少工作量并提高开发效率.只要依赖轮子,往往就需要一个轮子管理工具(构建工具)来处理轮子之间的依赖.这种轮子管理工具已经成为成熟语言的标配.比如java中的maven,ant,gradle,C,C++中的make,python中的pip,node.js中的npm等.


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM