var request; 04 if(window.XMLHttpRequest){ 05 request = new XMLHttpRequest(); 06 }else if(window.ActiveXObject){ 07 request = new ActiveXObject("Microsoft.XMLHTTP"); 08 }else{ 09 return; 10 }