【问题标题】:Bootstrap works when imported by CDNS but not when imported by Node modulesBootstrap 在由 CDNS 导入时有效,但在由 Node 模块导入时无效
【发布时间】:2022-01-13 22:48:34
【问题描述】:

基本上,我正在尝试学习和测试引导程序。我注意到我可以通过完全按照他们网站上为 cdn 显示的模板导入文件来使其工作。但是当我通过 node 安装 boostrap、poppper 和 jquery 并导入完全相同的文件时。它不起作用。我附上了两张截图,显示了我的意思。 Bootstrap collapse working when I import using the CDNS

Bootstrap collapse not working when I import using the node modules

编辑:这是我的文件系统 files system

【问题讨论】:

  • ./node_modules/.. 是正确的路径吗?

标签: javascript html node.js twitter-bootstrap visual-studio-code


【解决方案1】:

所以一切都一直在工作,语法已经从 boostrap 版本改变了,我让它与那个 cdn 一起工作的原因是因为它实际上是它的旧版本。一旦我用版本 5 的语法替换了我的语法,一切都可以通过使用节点模块进行导入。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-07-11
    • 1970-01-01
    • 1970-01-01
    • 2022-08-04
    • 2021-07-25
    相关资源
    最近更新 更多