贤惠月光

文章
6
资源
0
加入时间
3年2月3天

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