//消息通知跳转定位 全站通用
if(window.location.hash.indexOf('!') > 0){
var top = $('a[name='+window.location.hash.split('!')[1]+']').offset().top -(defaultElem.bd.length > 0 ? 0 : 76);
Uncaught TypeError: Cannot read property 'top' of undefined
$("html,body").animate({scrollTop:top},'slow');
}
见图:浏览器: chrome, firefox