使用bootstrap引入jquery时发生错误

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <title>Document</title>

    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> 

</head>

<body>

    <a href="#">Inbox <span class="badge">42</span></a>


<button class="btn btn-primary" type="button">

  Messages <span class="badge">4</span>

</button>

<script src="https://cdn.bootcss.com/jquery/3.2.1/core.js"></script>

<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>  

</body>

</html>

https://img1.mukewang.com/5c3561c60001480304160179.jpg

请问是我的代码有问题吗

烙印99
浏览 500回答 1
1回答

芜湖不芜

jquery文件引入错误了
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript