var request;
if(window.XMLHttpRequest){
request= new XMLHttpRequest();//ie7+,ff,chrome,opera,safari.
}else{
request = new ActiveXObject("Microsoft.XMLHTTP");//ie5 6}
if(window.XMLHttpRequest){
request= new XMLHttpRequest();//ie7+,ff,chrome,opera,safari.
}else{
request = new ActiveXObject("Microsoft.XMLHTTP");//ie5 6}
2015-03-23