87,904
社区成员
发帖
与我相关
我的任务
分享
var id = document.location.search.replace("?id=","")
s = location.search;
st = s.indexOf("id=");
ed = s.indexOf("&",st);
if(ed==-1) ed = s.length;
s = s.substring(st+"id=".length, ed);
alert(s);
<script>
var id=" <%=Request("id")%>";
alert(id)
</script>
<script>
var id="<%=Request.QueryString["id"]%>";
alert(id)
</script>