在 jsFiddle 中引用 GitHub 文件 [英] Reference GitHub file in jsFiddle

查看:23
本文介绍了在 jsFiddle 中引用 GitHub 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能 misuse 从 github 存储库中抓取文件作为 jsFiddle 中的外部资源?

Is there a possibility to misuse grab files from a github repo as external resources in jsFiddle?

推荐答案

这是一个更新的答案,因为 Github 的 url 略有变化......我遇到了这个问题并在今天解决了这个问题.希望这有助于人们最近找到这篇文章.Bootswatch 中的 Bootstrap Slate 主题示例:

This is an updated answer, since the url's have changed slightly for Github... I ran into this issue and figured it out for present day. Hopefully this helps people out finding this post recently. Example for Bootstrap Slate theme from Bootswatch:

  1. 原始文件网址:https://raw2.github.com/thomaspark/bootswatch/gh-pages/slate/bootstrap.css

删除 raw 之后的 2.:https://rawgithub.com/thomaspark/bootswatch/gh-pages/slate/bootstrap.css

就是这样!:D

这篇关于在 jsFiddle 中引用 GitHub 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆