在写bootstarp的时候,一直报

 

 

 

查看了自己引入的文件路径是对的,也可以使用jquery进行操作表单

    <script src="node_modules/jquery/dist/cdn/jquery-2.1.1.min.js"> </script>
    <link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css"/>
    <script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>


之后导入菜鸟的链接

    <script src="https://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="node_modules/jquery/dist/cdn/jquery-2.1.1.min.js"> </script>
    <link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css"/>
<!--<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>


完全可以使用的。boostrap下拉菜单起作用。后来翻看了一下,说:

js文件引入的先后顺序,应该先引入jquery的js文件再引入bootstrap的css文件。

 

相关文章:

  • 2022-12-23
  • 2021-05-15
  • 2022-12-23
  • 2021-04-16
  • 2021-07-30
  • 2021-11-13
  • 2021-06-27
  • 2021-09-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
相关资源
相似解决方案