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

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

问题描述

有没有一种可能性<击>滥用从的jsfiddle?


解决方案
一个GitHub库外部资源抢文件

这是一个更新的答案,因为Github的网址已经发生了轻微的变化......我遇到了这个问题,并为今天做好了准备。希望这可以帮助人们最近找到这个职位。 Bootswatch的Bootstrap Slate主题示例:


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


  2. 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:

  1. Raw file url: https://raw2.github.com/thomaspark/bootswatch/gh-pages/slate/bootstrap.css

  2. Remove the 2. after raw: https://rawgithub.com/thomaspark/bootswatch/gh-pages/slate/bootstrap.css

That's it! :D

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

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