2017-10-07 190 views
0

我想做一個下拉菜單,但我得到這個錯誤:下拉菜單popper.js

"Uncaught Error: Bootstrap dropdown require Popper.js (https://popper.js.org) 
    at bootstrap.min.js:6 
    at bootstrap.min.js:6 
    at bootstrap.min.js:6" 

我發現了一些關於它的問題在這裏,但他們沒有爲我工作。我如何導入這個popper.js?

EDIT1:

我只是找到了一種用script標籤來導入...這是這一切的時候引導文檔。但是,還有一個問題:代碼沒有錯誤,但我的下拉按鈕不起作用。我試圖引導文檔中的每一個下拉列表中,我CTRL + C - CTRL-V所有的人,沒有他們的工作是,我按一下按鈕沒有任何反應:(

!doctype html> 
<html> 
<head> 
<meta charset="utf-8"> 
<title>About us</title> 


<link href="bootstrap.min.css" rel="stylesheet" type="text/css"> 


<link href="Sobre-Nós.css" rel="stylesheet" type="text/css"> 





<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> 

<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script> 







</head> 

回答

0

我解決我的問題,它只是:!

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"> 

<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> 
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script> 
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>