local xhr=cc.XMLHttpRequest:new() xhr.responseType=cc.XMLHTTPREQUEST_RESPONSE_JSON xhr:open(“POST”,"https://www.baidu.com") xhr:send("a=1&b=2")
local xhr=cc.XMLHttpRequest:new() xhr.responseType=cc.XMLHTTPREQUEST_RESPONSE_JSON xhr:open(“POST”,"https://www.baidu.com") xhr:send("a=1&b=2")
转载于:https://www.cnblogs.com/gamesky/p/10087409.html