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 on 2018-12-08 13:22  -冷夜-  阅读(982)  评论(0)    收藏  举报

导航