設置 | 登錄 | 註冊

目前共有2篇帖子。

【ASP】AJAX快速发送函数

1樓 产品的注销 2011-1-22 15:20
function Ajaxs(e){
if (window.ActiveXObject){
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }else if (window.XMLHttpRequest){
    xmlHttp = new XMLHttpRequest();
    }
xmlHttp.open("get",e,true);
xmlHttp.onreadystatechange=AjaxHt1;
xmlHttp.send(null);
}
function AjaxHt1(){
if ( xmlHttp.readyState==4 ) {
      if ( xmlHttp.status==200 ) {
   return true;
   }
}
}

调用:Ajaxs(地址)
如:Ajaxs("d.asp?f=44")
即可执行d.asp里的内容

2樓 产品的注销 2011-1-22 15:20
2010年05月08日 15:09

內容轉換:

回覆帖子
內容:
用戶名: 您目前是匿名發表。
驗證碼:
看不清?換一張
©2010-2025 Purasbar Ver3.0 [手機版] [桌面版]
除非另有聲明,本站採用知識共享署名-相同方式共享 3.0 Unported許可協議進行許可。