[]关于HttpRequest报错问题
var xmlHttp = new Laya.HttpRequest();
xmlHttp.open("POST", url, true);
xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8");
xmlHttp.once(Event.COMPLETE,this,onHttpRequestComplete);
xmlHttp.once(Event.ERROR,this,errorHandler);
xmlHttp.on(Event.PROGRESS,this,processHandler);
function onHttpRequestComplete(e){
};
function processHandler(data){
console.log(data);
};
function errorHandler(data){
};
xmlHttp.send("http://","","post","text");
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
lambun
赞同来自:
lambun
赞同来自: