当我使用bootstrap4 用它的按钮组下拉菜单的时候 给我报了这样的错误 

说我们需要一个popper.js文件 

俩种解决方法

第一种:<script src="https://cdn.bootcss.com/popper.js/1.15.0/umd/popper.js"></script>  //网络资源

第二种:下载到本地

1.在当前文件夹 下 初始化项目 npm  init

2.安装 popper.js 

 npm  install popper.js

3.安装完之后 看见这样的一个文件见

3.Bootstrap's dropdowns require Popper.js

 

Bootstrap's dropdowns require Popper.js

4.进入第一个文件夹中 dist/umd/popper.js   使用这一个js文件  在项目中引入  切记放在bootstrap.js之前

Bootstrap's dropdowns require Popper.js

相关文章:

  • 2022-12-23
  • 2021-10-29
  • 2021-04-09
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2021-10-04
  • 2022-12-23
  • 2021-12-19
  • 2022-02-15
相关资源
相似解决方案