zoukankan      html  css  js  c++  java
  • 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等.

  • 相关阅读:
    SVG绘制星空效果
    httpserver实现简单的上下文
    httpserver
    多协成利用互斥锁按顺序执行读取文件
    channel补充
    获取小程序的手机号
    php 简单加密解密
    goroutine channel
    json序列化和反序列化
    golang 命令行参数
  • 原文地址:https://www.cnblogs.com/weiyinfu/p/5849947.html
Copyright © 2011-2022 走看看