得到Html参数
<script language="javascript">
/*得到Html參數,Code By Nicenic.com, IceFire*/
function Request(strName)
{
?var strHref = window.document.location.href;
?var intPos = strHref.indexOf("?");
?var strRight = strHref.substr(intPos + 1);
?var arrTmp = strRight.split("&");
?for(var i = 0; i < arrTmp.length; i++) {
? var arrTemp = arrTmp[i].split("=");
?? if(arrTemp[0].toUpperCase() == strName.toUpperCase()) return arrTemp[1]; }
?return "";
}
</script>
/*得到Html參數,Code By Nicenic.com, IceFire*/
function Request(strName)
{
?var strHref = window.document.location.href;
?var intPos = strHref.indexOf("?");
?var strRight = strHref.substr(intPos + 1);
?var arrTmp = strRight.split("&");
?for(var i = 0; i < arrTmp.length; i++) {
? var arrTemp = arrTmp[i].split("=");
?? if(arrTemp[0].toUpperCase() == strName.toUpperCase()) return arrTemp[1]; }
?return "";
}
</script>
轉載于:https://www.cnblogs.com/netboys/articles/1185735.html
總結
- 上一篇: VS2008 安装盘的问题
- 下一篇: 安全常識