加载资源失败:net::错误文件未找到jquery

fcg9iug3  于 2023-01-25  发布在  jQuery
关注(0)|答案(1)|浏览(173)

我正在测试我的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>
jhkqcmku

jhkqcmku1#

尝试删除字符串末尾的空白字符:

<script src="https://code.jquery.com/jquery-3.3.1.min.js">

相关问题