用XMLHTTP
<script language="javascript">
var XmlHttp=new ActiveXObject("Microsoft.XMLHTTP");;
XmlHttp.open("GET","http://localhost/index.aspx",false);
try{
XmlHttp.send();
if(XmlHttp.status==200){
alert("ok");
}else{
alert("no");
}
}catch(error){
alert("error");
}
</script>
<script language="javascript">
var XmlHttp=new ActiveXObject("Microsoft.XMLHTTP");;
XmlHttp.open("GET","http://localhost/index.aspx",false);
try{
XmlHttp.send();
if(XmlHttp.status==200){
alert("ok");
}else{
alert("no");
}
}catch(error){
alert("error");
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货