1、首先定位到需要访问的文件..
2、获取URL链接
https://github.com/Forever2017/JokerKit/blob/master/README.md
3、修改
把 https://github.com 修改为 https://raw.githubusercontent.com
4、大致结构是
https://raw.githubusercontent.com/账号名/仓库名/分支(master)/文件夹路径/文件名
5、这里使用的例子是
https://github.com/Forever2017/JokerKit/blob/master/README.md
转换成
https://raw.githubusercontent.com/Forever2017/JokerKit/master/README.md
这样就能够访问任意的文件,可以使用xml、txt、json文件当做远程服务器操作了。。 注意这里 私有 的工程不能访问~
更多用法... 持续更新...