问题描述
这似乎是一个蹩脚的问题,但我无法弄明白。如何导入与Bootstrap 4 beta相关的popper.js?
It seems to be a lame question, but I cannot to figure it out. How to import popper.js which comes toghether with Bootstrap 4 beta?
我使用bower并且我已经安装了Bootstrap 4 beta。现在在 bower_components
文件夹中有 popper.js
目录,其中包含一些子文件夹。问题是没有 dist
文件夹和 popper.min.js
文件。
I use bower and I've installed Bootstrap 4 beta. Now in bower_components
folder there is popper.js
directory, which contains a few sub-folders. The problem is there is no dist
folder and popper.min.js
file.
Bootstrap 4指向CDN的指南:
Bootstrap 4 guide links to CDN: https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js
但如何在没有CDN的情况下导入popper.js?哪里可以找到 popper.min.js
文件?
But how to import popper.js without CDN? Where to find popper.min.js
file?
编辑:即使我下载 zip
来自popper.js网站,它包含与 bower
完全相同的文件。
Even if I download zip
from popper.js website it contains exactly the same files as from bower
.
推荐答案
我遇到了同样的问题。
我从引导程序上的CDN下载了'popper.min.js'文件网站。
I downloaded the 'popper.min.js' file from the CDN on the bootstrap website.
见这里:
比编译项目更容易。
这篇关于如何导入popper.js?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!