ref:https://blog.csdn.net/neve_give_up_dan/article/details/104817638
可以使用该CDN网站进行加速:
https://www.jsdelivr.com/
官方示例:
Load any GitHub release, commit, or branch:
/gh/user/repo@version/file
Load exact version:
/gh/jquery/[email protected]/dist/jquery.min.js
/gh/jquery/jquery@32b00373b3f42e5cdcb709df53f3b08b7184a944/dist/jquery.min.js
Use a version range instead of an exact version (only works with valid semver versions):
/gh/jquery/jquery@3/dist/jquery.min.js
/gh/jquery/[email protected]/dist/jquery.min.js
Omit the version completely or use "latest" to load the latest one
/gh/jquery/jquery@latest/dist/jquery.min.js
/gh/jquery/jquery/dist/jquery.min.js
Get a directory listing:
/gh/jquery/[email protected]/
/gh/jquery/[email protected]/dist/
演示示例:
原来的资源链接是这样的
https://raw.githubusercontent.com/wolfdan666/BlogPic/master/test.jpg
后来的资源链接就可以这样访问
https://cdn.jsdelivr.net/gh/wolfdan666/BlogPic/test.jpg
或者
https://cdn.jsdelivr.net/gh/wolfdan666/BlogPic@master/test.jpg
标签:jquery,github,dist,min,cdn,js,raw,version,gh
From: https://www.cnblogs.com/wioponsen/p/18022500