Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

getXMLHttpRequest在海马模拟器崩溃

$
0
0

@306046989 写道:

代码
var url = "http地址"
var xhr = cc.loader.getXMLHttpRequest();
xhr.onloadend = function () {};
xhr.onreadystatechange = function () {};
xhr.open("GET", url, true);
xhr.setRequestHeader("Accept-Encoding","gzip,deflate");
xhr.timeout = 5000;
xhr.send();
海马模拟器在send之后,打印一下信息,然后游戏崩溃了

帖子: 5

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles