在jsFiddle中引用GitHub文件 [英] Reference GitHub file in jsFiddle
问题描述
有没有一种可能性<击>滥用击>从的jsfiddle?
这是一个更新的答案,因为Github的网址已经发生了轻微的变化......我遇到了这个问题,并为今天做好了准备。希望这可以帮助人们最近找到这个职位。 Bootswatch的Bootstrap Slate主题示例:
-
原始文件网址: https://raw2.github.com/thomaspark/bootswatch/gh-pages/slate/bootstrap.css
-
在
raw
之后移除2。
: https://rawgithub.com/thomaspark/bootswatch/gh-pages/slate /bootstrap.css
就是这样! :D
Is there a possibility to misuse grab files from a github repo as external resources in jsFiddle?
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:
Raw file url: https://raw2.github.com/thomaspark/bootswatch/gh-pages/slate/bootstrap.css
Remove the
2.
afterraw
: https://rawgithub.com/thomaspark/bootswatch/gh-pages/slate/bootstrap.css
That's it! :D
这篇关于在jsFiddle中引用GitHub文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!