比如:list.html?id=236636后面传过来这个ID的值怎么样在静态页面中读取..
来源:百度知道 编辑:UC知道 时间:2024/05/29 05:32:57
比如:list.html?id=236636后面传过来这个ID的值怎么样在静态页面中读取..
那个高手给看看这个静态页面读值问题..
那个高手给看看这个静态页面读值问题..
给String增加一个通用函数,使用正则来取值。
<SCRIPT LANGUAGE=javascript>
String.prototype.getQueryString = function(name)
{
var reg = new RegExp("(^|&|\\?)"+ name +"=([^&]*)(&|$)"), r;
if (r=this.match(reg)) return unescape(r[2]); return null;
};
var sId = location.search.getQueryString("id");
alert(sId);
</SCRIPT>
<script>
ids = location.search.replace('?','');
alert(ids);
</script>
比如:list.html?id=236636后面传过来这个ID的值怎么样在静态页面中读取..
这段html语言的意思是什么?(比如id代表什么)
html?id=xxx
PM list是什么意思,比如论坛上有agency feedback PM list,怎么解释
静态页面动态效果html?id=
index.html?id=1 什么意思
HTML如何理解dialogArguments.window.frames.list.form1.pgd_corp.value=form1.pgd_corp.value;
各位高手谁知道list to me 的序列号和ID吗
html?id=33 是怎么样实现的?
html标签中id和name的区别?