本文最后更新于:1 年前

本文链接:https://blog.csdn.net/qq_36910987/article/details/89562291

jsdelivr https://www.jsdelivr.com/
下面就以举例子的方式说明

我是用 jsdelivr 来访问 github的资源,做博客来着
我的github  https://github.com/yuDuChen/yuduchen
下面直接说怎么用jsdelivr,就不提如何创建github了

首先需要创建 releases

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

创建完,随便进入到一个文件,注意地址名
1

在这里插入图片描述

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 

对比一下就发现怎么用了吧

注* 不使用jsdelivr直接引用github的文件  content-type 是 text/plain  页面无法解析

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!

第一个元宵 上一篇
蓝桥杯-基础练习-01字串 下一篇

 目录