<select id="select" οnchange="location.href='?page='+escape(this.value)+'';">
<option>请选择</option>
<option value="这是第一个">1</option>
<option value="2">2</option>
<option value="這是第三個">3</option>
</select>
<script type='text/javascript'>
function toGet(name){
var reg = new RegExp("(^|&)"+name+"=([^&]*)(&|$)");
var r=window.location.search.substr(1).match(reg);
if(r!=null){
return unescape(r[2]);
}
}
$page=toGet("page");
if($page!=null){
console.log($page);
}
</script>
转载于:https://www.cnblogs.com/see7di/archive/2011/11/30/2268513.html