AJAX-发送HTTP请求
AJAX-发送HTTP请求let xhrif (window.XMLHttpRequest){ xhr = new XMLHttpRequest();}else { xhr = new ActiveXObject('Microsoft.XMLHTTP') // IE5,IE6生效}console.log(xhr.readyState ) // 0xhr.open('GET', 'URL',true) //方法 url 是否异步// onreadystatchange 事件,挂载到XML