NSF Back-end Dev Engineer

jsdelivr

2019-12-05
nsf

jsdelivr的使用

为什么用jsdelivr?

访问某些资源速度慢,比如github,用它来做一个代理的作用。

怎么使用?

拿github举例,jsdelivr不需要配置,github自己的项目发布releases版本,后面就能用jsdelivr访问到自己的资源了,例子如下

https://github.com/yuDuChen/yuduchen/blob/v1.5.6/layui/layui.js  
这个地址用jsdelivr来访问 https://cdn.jsdelivr.net/gh/yuDuChen/yuduchen@v1.5.6/layui/layui.js  

上一篇 星空背景

下一篇 个人介绍

Comments

Content