使用频率 | 中低 |
所属模块 | Std.loader |
成员类型 | 公有成员函数 |
String basePath();
Object basePath(String basePath);
类型 | 描述 |
String | url地址的基础路径 |
1. 当前的基础路径
2. this对象
var loader = new Std.loader();
loader.basePath("http://source.stdjs.com/0.1/");
loader.load("io/websocket.js",function(){
console.log("loaded");
});