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

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

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

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

相关文章
相关标签/搜索