[]官方的示例贴上来,怎么没反映啊
var JiHuo = (function (_super) {
function JiHuo() {
JiHuo.super(this);
var xhr = new Laya.HttpRequest();
xhr.http.timeout = 10000;//设置超时时间;
xhr.once(Event.COMPLETE, this, completeHandler);
xhr.once(Event.ERROR, this, errorHandler);
xhr.on(Event.PROGRESS, this, processHandler);
xhr.send("https://api.weixin.qq.com/cgi- ... ot%3B, "", "get", "text");
function processHandler(data) {
console.log(data);
}
function errorHandler(data) {
alert(2);
}
function completeHandler(e) {
alert(1);
}
}
Laya.class(JiHuo, "ui.JiHuo", _super);
return JiHuo;
})(ui.JiHuoUI);
function JiHuo() {
JiHuo.super(this);
var xhr = new Laya.HttpRequest();
xhr.http.timeout = 10000;//设置超时时间;
xhr.once(Event.COMPLETE, this, completeHandler);
xhr.once(Event.ERROR, this, errorHandler);
xhr.on(Event.PROGRESS, this, processHandler);
xhr.send("https://api.weixin.qq.com/cgi- ... ot%3B, "", "get", "text");
function processHandler(data) {
console.log(data);
}
function errorHandler(data) {
alert(2);
}
function completeHandler(e) {
alert(1);
}
}
Laya.class(JiHuo, "ui.JiHuo", _super);
return JiHuo;
})(ui.JiHuoUI);
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
w1114367261
赞同来自:
hiafu
赞同来自: