function ajaxFunction(){
- var xmlHttp;
- try{
- xmlHttp=new XMLHttpRequest();
- }
- catch (e){
- try{
- xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
- }
- catch (e){
- try{
- xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
- }
- catch (e){}
- }
- }
- return xmlHttp;
- }
获取ajax对象,布布扣,bubuko.com
获取ajax对象
原文:http://www.cnblogs.com/qiyongliang/p/3818819.html