<script type="text/javascript">
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}
var str1 = getQueryVariable("select1"); // 参数1
var str2 = getQueryVariable("select2"); // 参数2
$("#select1 option:eq("+str1+")"); // 将选中的人和日期选中
$("#select2 option:eq("+str2+")");
</script>
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!