前端常用库 CDN

jQuery

链接:https://i.mazey.net/cdn/jquery/2.1.1/jquery.min.js

代码:

<script type="text/javascript" src="//i.mazey.net/cdn/jquery/2.1.1/jquery.min.js"></script>

英文官方文档:https://api.jquery.com/

中文非官方文档:https://jquery.cuishifeng.cn/

Lodash

链接:https://i.mazey.net/cdn/lodash/4.17.21/lodash.min.js

代码:

<script type="text/javascript" src="//i.mazey.net/cdn/lodash/4.17.21/lodash.min.js"></script>

英文官方文档:https://lodash.com/

中文非官方文档:https://www.lodashjs.com/

Vue 2.x

链接:https://i.mazey.net/cdn/vue/2.6.12/vue.min.js

代码:

<script type="text/javascript" src="//i.mazey.net/cdn/vue/2.6.12/vue.min.js"></script>

官方文档:https://v2.cn.vuejs.org/

Font Awesome

CSS 链接:https://i.mazey.net/cdn/fontawesome/5.15.4/css/all.css

代码:

<link type="text/css" href="//i.mazey.net/cdn/fontawesome/5.15.4/css/all.css" rel="stylesheet" />

官方文档:https://fontawesome.com/

Bootstrap

CSS 链接:https://i.mazey.net/cdn/bootstrap/3.4.1/css/bootstrap.min.css

JavaSctipt 链接:https://i.mazey.net/cdn/bootstrap/3.4.1/js/bootstrap.min.js

代码:

<link type="text/css" href="//i.mazey.net/cdn/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet" />

<script type="text/javascript" src="//i.mazey.net/cdn/bootstrap/3.4.1/js/bootstrap.min.js"></script>

英文官方文档:https://getbootstrap.com/docs/3.4/

中文非官方文档:https://v3.bootcss.com/

Layer

PC 链接:https://i.mazey.net/cdn/layer/layer.js

Mobile 链接:https://i.mazey.net/cdn/layer/mobile/layer.js

代码:

<script type="text/javascript" src="//i.mazey.net/cdn/layer/layer.js"></script>

<script type="text/javascript" src="//i.mazey.net/cdn/layer/mobile/layer.js"></script>

中文非官方文档:https://layui.gitee.io/v2/docs/modules/layer.html

IE 兼容

IE 支持 HTML5:https://i.mazey.net/cdn/html5shiv/3.7.3/html5shiv.min.js

IE 支持 CSS3:https://i.mazey.net/cdn/respond/1.4.2/respond.min.js

代码:

<!--[if lt IE 9]>
      <script src="//i.mazey.net/cdn/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="//i.mazey.net/cdn/respond/1.4.2/respond.min.js"></script>
<![endif]-->

Mazey

CSS 链接:https://i.mazey.net/mazey-style/lib/confluence.css

JavaSctipt 链接:https://i.mazey.net/mazey/lib/mazey.min.js

代码:

<link type="text/css" href="//i.mazey.net/mazey-style/lib/confluence.css" rel="stylesheet" />

<script type="text/javascript" src="//i.mazey.net/mazey/lib/mazey.min.js"></script>

官方文档:https://mazey.cn/docs/mazey/index.html

vConsole

JavaSctipt 链接:https://unpkg.com/vconsole@latest/dist/vconsole.min.js

代码:

<script src="//unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
<script>
  // VConsole will be exported to `window.VConsole` by default.
  if (window.VConsole) {
    var vConsole = new window.VConsole();
  }
</script>

官方文档:https://github.com/Tencent/vConsole

附录

本文档地址:https://blog.mazey.net/cdn

发表评论

您的电子邮箱地址不会被公开。