Ajax ajax native object -xhr Object Compatibility wording

兼容性问题
	获得xhr对象
	
		非ie:new XMLHttpRequest()
		ie:new ActiveXObject()
	写法:

		if(window.XMLHttpRequest)
		{
			var xhr=new XMEHttpRequest();
		}else{
			var xhr=new ActiveXObject();
		}
Published 252 original articles · won praise 3 · Views 3271

Guess you like

Origin blog.csdn.net/weixin_43294560/article/details/103655144