预览 GitHub 项目里的html文件

在github上面html的链接前面添加上https://htmlpreview.github.io/?即可

比如这个链接https://github.com/ruanyf/jstraining/blob/master/demos/backbone-demo/index.html你打开看到的是html页面,加上https://htmlpreview.github.io/?之后就可以直接显示网页了,如下

https://htmlpreview.github.io/?https://github.com/ruanyf/jstraining/blob/master/demos/backbone-demo/index.html


来源:来自知乎

在项目源代码页面链接前缀那加上 http://htmlpreview.github.com/? 举个栗子:
需要打开的项目页面 github.com/aisinvon/ais
给加上前缀 http://htmlpreview.github.com/?
最终链接 htmlpreview.github.io/?
作者:Vodka Zheng
链接:https://www.zhihu.com/question/24156818/answer/35181447
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

你可能感兴趣的:(个人,笔记,小技巧)