local xhr=cc.XMLHttpRequest:new()
    xhr.responseType=cc.XMLHTTPREQUEST_RESPONSE_JSON
    xhr:open(“POST”,"https://www.baidu.com")
    xhr:send("a=1&b=2")

 

相关文章: