Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
624 views
in Technique[技术] by (71.8m points)

bootstrap-4 - 为什么即使安装依赖项并导入后,bootstrap 4 dropdowm和切换按钮也无法正常工作?(why does bootstrap 4 dropdowm and toggle button does not work even after installing dependencies and importing it?)

This is what i have tried!

(这就是我尝试过的!)

https://navbarex.stackblitz.io

(https://navbarex.stackblitz.io)

i have installed bootstrap, jquery and popper.js

(我已经安装了bootstrap,jquery和popper.js)

and i have imported that in angular.json file

(我已经将它导入了angular.json文件中)

 "styles": [
          "src/styles.css",
          "node_modules/bootstrap/dist/css/bootstrap.min.css"
        ],
        "scripts": [
          "./node_modules/bootstrap/dist/js/bootstrap.js",
          "./node_modules/jquery/dist/jquery.min.js",
          "./node_modules/popper.js/dist/umd/popper.min.js"

        ]

same thing i have tried in my local machine its working fine but why not here in StackBlitz?

(我在我的本地计算机上尝试过的同样的东西,但工作正常,但为什么在StackBlitz中却没有呢?)

  ask by Afreen Khanum translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...