<div class="codetitle"> <span><a style="CURSOR: pointer" data="85479" class="copybut" id="copybut85479" onclick="doCopy('code85479')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code85479"> <br>function GetQueryString(name) <br>{ <br>var reg = new RegExp("(^|&)" name "=([^&]*)(&|$)"); <br>var r = window.location.search.substr(1).match(reg); <br>if(r!=null)return unescape(r[2]); return null; <br>} <br>var myurl=GetQueryString("power"); <br><strong>//这个就是获取地址栏名为power的值<br></strong> </div>