<div class="codetitle"> <span><a style="CURSOR: pointer" data="16866" class="copybut" id="copybut16866" onclick="doCopy('code16866')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code16866"> <br><select id="select" onchange="location.href='?page='+escape(this.value)+'';"> <br><option>请选择</option> <br><option value="这是第一个">1</option> <br><option value="2">2</option> <br><option value="這是第三個">3</option> <br></select> <br><br><script type="text/javascript"> <br><br>function toGet(name){ <BR>var reg = new RegExp("(^|&)"+name+"=([^&]*)(&|$)"); <BR>var r=window.location.search.substr(1).match(reg); <BR>if(r!=null){ <BR>return unescape(r[2]); <BR>} <BR>} <br><br>$page=toGet("page"); <BR>if($page!=null){ <BR>console.log($page); <BR>} <BR></script> <br> </div>