jQuery 3.3.1 cdn链接
使用jquery库有两种方式,一种是下载到本地,另一种是使用cdn链接。各有利弊。为啥呢?
下载到本地意味着所有的请求都会从本地将所需要的js之类的文件传输过去,一个是服务端的负载增加,另一个是当访问结节距离您的网络条件不大好时,可能会很慢。
使用cdn的好处按位置去请求最近的服务结点获取到脚本文件,甚至在访问别的网站时浏览器已经加载了相应的库文件,已经缓存了,那都不需要再请求一次库文件了。
所以,个人更倾向于使用cdn链接的方式使用前端框架库。
个人使用jquery遇到一个问题,slim版本的不支持load。但是min版本的是支持的,所以只能换了。。。链接通过官网查找如下:)
https://cdnjs/libraries/jquery/官网查询地址:
<script src="https://cdnjs.cloudflare/ajax/libs/jquery/3.3.1/jquery.slim.min.js" integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare/ajax/libs/jquery/3.3.1/jquery.slim.js" integrity="sha256-fNXJFIlca05BIO2Y5zh1xrShK3ME+/lYZ0j+ChxX2DA=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare/ajax/libs/jquery/3.3.1/jquery.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare/ajax/libs/jquery/3.3.1/core.js" integrity="sha256-YCbKJH6u4siPpUlk130udu/JepdKVpXjdEyzje+z1pE=" crossorigin="anonymous"></script>
Font Awesome
再附上font awesome的字体库cdn.
官方链接:https://cdnjs/libraries/font-awesome
https://cdnjs.cloudflare/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2
https://cdnjs.cloudflare/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff
https://cdnjs.cloudflare/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf
https://cdnjs.cloudflare/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.svg
https://cdnjs.cloudflare/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.eot
https://cdnjs.cloudflare/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.eot
https://cdnjs.cloudflare/ajax/libs/font-awesome/4.7.0/fonts/FontAwesome.otf
<link rel="stylesheet" href="https://cdnjs.cloudflare/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" />
https://cdnjs.cloudflare/ajax/libs/font-awesome/4.7.0/css/font-awesome.css.map
<link rel="stylesheet" href="https://cdnjs.cloudflare/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" integrity="sha256-NuCn4IvuZXdBaFKJOAcsU2Q3ZpwbdFisd5dux4jkQ5w=" crossorigin="anonymous" />
更多推荐
jQuery 3.3.1 cdn链接
发布评论