<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script language="JScript">
<!--
var LocString=String(window.document.location.href);
function GetQueryString(str){
var rs=new RegExp("(^|)"+str+"=([^&]*)(&|$)","gi").exec(LocString),tmp;
if(tmp=rs)return tmp[2];
return "没有这个参数";
}
var mac=GetQueryString("mac");
var ip=GetQueryString("ip");
var uid=GetQueryString("uid");
alert("mac地址为:"+mac);
alert("ip为:"+ip);
alert("uid为:"+uid);
//发送异步请求,没有返回结果
$.ajax({
type : "post",
url : "/vv.zz?type=94&mac="+mac+"&uid="+uid+"&ip="+ip,
data : null,
async : false
});
-->
</script>
</head>
<body>
页面显示
</body>
</html>
访问此页面时,显示页面并获得链接中的参数往后台发送请求