Lua中 MinXmlHttpRequest如何发送post方式数据

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

 

posted @ 2018-12-08 13:22  冷夜 - 网游编程技术  阅读(930)  评论(0编辑  收藏  举报