我正在测试我的chrome扩展,它无法加载本地jquery-3.3.1.js,即使我尝试了在线jquery URL https://code.jquery.com/jquery-3.3.1.min.js
它一遍又一遍地给出同样的错误我该怎么做才能让它工作,我的代码看起来像这样
<!doctype html>
<html>
<head>
<title>Spoiler Blocker</title>
<link href="popup.css" media="all" rel="stylesheet" type="text/css">
</head>
<body>
<div id="form">
<h3>Type in the name of a show you want to Unspoil</h3>
<input id="spoiler-input" type="text" placeholder="Breaking Bad">
<button id="unspoil-button" class="btn btn-primary">Unspoil</button>
</div>
<main id="showslist" class="app__body">
<!-- TaskItems will be rendered here -->
</main>
<!-- <script type="text/javascript" src="./jquery-3.3.0.js"></script>
-->
<script src="https://code.jquery.com/jquery-3.3.1.min.js "></script>
<script type="text/javascript" src="./init.js"></script>
<script type="text/javascript" src="./popup.js"></script>
<script type="text/javascript" src="./content.js"></script>
</body>
</html>
1条答案
按热度按时间jhkqcmku1#
尝试删除字符串末尾的空白字符: