链接到 jquery 时,脚本标签下有一条红线
I have a red line under the script tag when linking to jquery
正在尝试 link 到 jquery。我的代码有效,但脚本下方仍然有一条红线,所以我不知道哪里出了问题
Here is the code
Here is what it says on the with red line under
如何从 jQuery CDN 中包含 jQuery:https://code.jquery.com/
最新jQuery3版本:
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous"></script>
The integrity and crossorigin attributes are used for Subresource
Integrity (SRI) checking. This allows browsers to ensure that
resources hosted on third-party servers have not been tampered with.
Use of SRI is recommended as a best-practice, whenever libraries are
loaded from a third-party source.
我想所有的都说的很简短清楚了,没有必要再补充什么了。
关于缩小版3.3.1的完整性属性
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
正在尝试 link 到 jquery。我的代码有效,但脚本下方仍然有一条红线,所以我不知道哪里出了问题
Here is the code
Here is what it says on the with red line under
如何从 jQuery CDN 中包含 jQuery:https://code.jquery.com/
最新jQuery3版本:
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous"></script>
The integrity and crossorigin attributes are used for Subresource Integrity (SRI) checking. This allows browsers to ensure that resources hosted on third-party servers have not been tampered with. Use of SRI is recommended as a best-practice, whenever libraries are loaded from a third-party source.
我想所有的都说的很简短清楚了,没有必要再补充什么了。
关于缩小版3.3.1的完整性属性
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>