// 发送post请求
xhr.open("post","/reg",true)
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr.send(`tel=${telVal}&pw=${pwVal}`)
// 发送post请求
xhr.open("post","/reg",true)
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr.send(`tel=${telVal}&pw=${pwVal}`)
本文标题:2020-09-17 post请求
本文链接:https://www.haomeiwen.com/subject/buakyktx.html
网友评论