亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Ajax 和 Asp 的編程

 更新時(shí)間:2006年10月18日 00:00:00   作者:  
ajax.html
復(fù)制代碼 代碼如下:

<script>
function f(){
var req =new ActiveXObject("Microsoft.XMLHTTP"); 
req.open("GET","t.asp?t1="+t1.value, true); 
req.onreadystatechange = function(){
  if (req.readyState == 4) { 
  if (req.status == 200) { 
   msg.innerText = req.responseXML.documentElement.tagName; 
}
}
}
req.send(null); 

</script>
<div>1:顯示"OK"; 其他字符:顯示"Error"</div>
<input id=t1 value=1>
<input type=button value="檢測(cè)" onclick="javascript:f()"> <a href="javascript:f()">檢測(cè)</a>
<div id=msg></div>

t.asp
復(fù)制代碼 代碼如下:

<% 
Response.ContentType="text/xml"
response.charset="gb2312"
if request.querystring("t1")="1" then
response.write("<OK/>")
else
response.write("<ERROR/>")
end if 
%>


相關(guān)文章

最新評(píng)論