如何获取脚本的jQuery版本的完整性值

use*_*895 7 jquery

我从某处获得此代码

<script src="https://code.jquery.com/jquery-1.12.3.min.js" integrity="sha256-aaODHAgvwQW1bFOGXMeX+pC4PZIPsvn2h1sArYOhgXQ=" crossorigin="anonymous"></script>
Run Code Online (Sandbox Code Playgroud)

但是如果我想https://code.jquery.com/jquery-3.3.1.min.jshttps://code.jquery.com/jquery/中使用

如何获得相应的完整性值jquery-3.3.1.min.js

小智 11

使用https://www.srihash.org/生成链接

https://code.jquery.com/jquery-3.3.1.min.js
Run Code Online (Sandbox Code Playgroud)

生成为

<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT" crossorigin="anonymous"></script>
Run Code Online (Sandbox Code Playgroud)

  • 当您想在文件中保留相同的链接时,这非常有用。只需生成带有每个链接的完整性代码的链接即可。 (2认同)

Shr*_*yas 8

这是您正在寻找的东西吗?

<script
  src="https://code.jquery.com/jquery-3.3.1.js"
  integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
  crossorigin="anonymous"></script>
Run Code Online (Sandbox Code Playgroud)

我从这里找到了这个 -

jQuery 核心 – 所有版本

  • 是的,但是你在哪里找到诚信价值? (2认同)