<div class="codetitle"> <span><a style="CURSOR: pointer" data="81652" class="copybut" id="copybut81652" onclick="doCopy('code81652')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code81652"> <br>function getParameter(name) { <br>var reg = new RegExp((^&) + name + =([^&])(&$), i); <br>var r = window.location.search.substr(1).match(reg); <br>if (r != null) return unescape(r[2]); return null; <br>} <br> </div>