/
var xhr = cc.loader.getXMLHttpRequest();
var statusGetLabel = new cc.LabelTTF("Status:", "Thonburi", 18);
this.addChild(statusGetLabel, 1);
statusGetLabel.x = cc.winSize.width / 2;
statusGetLabel.y = cc.winSize.height - 100;
statusGetLabel.setString("Status: Send Get Request to httpbin.org");
set arguments with <URL>?xxx=xxx&yyy=yyy
xhr.open("GET", "http://120.76.242.96:8086/index.php/server/getjson?desk_id=1&desk_turns=2", true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status <= 207)) {
var httpStatus = xhr.statusText;
var response = xhr.responseText;;
cc.log(555555555555555555555);
}
};
xhr.send();