假如路径是这样的:www.domain.com/list/?menu=1
var locationUrl = location.search.substring(6);
switch(locationUrl) {
case "1":
$(".zxdt").click();
break;
case "2":
$(".xwzx").click();
break;
case "3":
$(".mtzx").click();
break;
};
假如路径是这样的:www.domain.com/list/?menu=1
var locationUrl = location.search.substring(6);
switch(locationUrl) {
case "1":
$(".zxdt").click();
break;
case "2":
$(".xwzx").click();
break;
case "3":
$(".mtzx").click();
break;
};