function createXHR(){ var xhr = null; if(window.XMLHttpRequest){//判断当前浏览器是否支持XMLHttpRequest xhr = new XMLHttpRequest(); }else if(window.XMLHttpRequest){//判断当前浏览器是否支持XMLHttpRequest,这是对于IE浏览器的判断 try{ xhr = new ActiveXObject("Msxml2.XMLHTTP");//IE6…
一.英文版解析 0: (Uninitialized) the send( ) method has not yet been invoked. 1: (Loading) the send( ) method has been invoked, request in progress. 2: (Loaded) the send( ) method has completed, entire response received. 3: (Interactive) the response is be…