TIP

Use integrity/crossorigin to lock JS and CSS files.

In the style of HTML code<link />Tags or<script >The `` tag adds integrity verification code to ensure the integrity of the loaded resource; if it has been tampered with, the browser will not load the resource.

According to this specification, you can add integrity verification code to your website to prevent resource files from being modified, and it also protects people who do not understand code from downloading your pages.

Reference sub-resource integrity:https://www.w3.org/TR/SRI/It supports all major browsers.

reg