//链接跳转到指定tab块 var ur =location.href; var type=ur.split('?')[1].split("=")[1]; document.getElementById(type.toString()).style.display="block";