读取URL参数
1
<script language="javascript" type="text/javascript">
2
var urlPath = document.url.split("?");
3
var parameterParts = rulPath[1].split("&");
4
for(i=0;i<parameterParts.length;i++)
5
{
6
var pairParts = parameterParts[i].split("=");
7
var pairName = pairParts[0];
8
var pairValue = pairParts[1];
9
document.write(pairName + ":" +pairValue);
10
}
11
</script>
![](/Images/OutliningIndicators/None.gif)
2
![](/Images/OutliningIndicators/None.gif)
3
![](/Images/OutliningIndicators/None.gif)
4
![](/Images/OutliningIndicators/None.gif)
5
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
6
![](/Images/OutliningIndicators/InBlock.gif)
7
![](/Images/OutliningIndicators/InBlock.gif)
8
![](/Images/OutliningIndicators/InBlock.gif)
9
![](/Images/OutliningIndicators/InBlock.gif)
10
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
11
![](/Images/OutliningIndicators/None.gif)