Ajax的使用

 <script>
let xhr=new XMLHttpRequest()
xhr.open("get","url") // 请求方法、请求地址
xhr.onload=function(){ //回调函数
 
}
xhr.send() //发送
</script>
原文地址:https://www.cnblogs.com/sunyang-001/p/10827899.html