2020-09-17 post请求
2020-09-17 本文已影响0人
alicemum
// 发送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}`)