Ajax的使用 <script> let xhr=new XMLHttpRequest() xhr.open("get","url") // 请求方法、请求地址 xhr.onload=function(){ //回调函数 } xhr.send() //发送 </script>