[]官方的示例贴上来,怎么没反映啊

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);
已邀请:

w1114367261

赞同来自:

官方粒子只是部分代码!只是对于开发者起到引导作用,代码有的是不全的哦!只是部分重要代码!初学者最好还是多看看基础教程

hiafu

赞同来自:

能不能给写个大概的示例???谢谢

要回复问题请先

商务合作
商务合作