使用频率 | 中 |
所属模块 | Std.sourceRepository |
成员类型 | 公有成员函数 |
Object addOrigin(Object sources);
Object addOrigin(String name,String path);
名称 | 类型 | 描述 |
name | String | 仓库的名称 |
path | String | 仓库的源地址 |
sources | Object | 仓库的名称与源地址对应的Object对象,通常情况很少用到,因为仓库一个源地址已经足够了. |
var sourceRepository = new Std.sourceRepository();
Std.source.repository = sourceRepository.response;
sourceRepository.addOrigin("StdJS","http://source.stdjs.com/0.1/");