我们能直接从Github链接文件吗?
<link rel="stylesheet" href="https://raw.github.com/username/project/master/style.css"/>
<script src="https://raw.github.com/username/project/master/script.js"></script>
我知道在Google Code上是允许这样做的。这样我就不用担心更新本地文件了。我们能直接从Github链接文件吗?
<link rel="stylesheet" href="https://raw.github.com/username/project/master/style.css"/>
<script src="https://raw.github.com/username/project/master/script.js"></script>
我知道在Google Code上是允许这样做的。这样我就不用担心更新本地文件了。
blob
替换为raw
以获取原始内容链接。例如:https://github.com/用户名/仓库/raw/main/路径/到/文件.扩展名
- undefined