js设置页面锚点 var hash; hash=(!window.location.hash)?"#tab_1":window.location.hash; window.location.hash=hash;