已采纳回答 / Kyle123
if ('#' !== href) {//当href的链接不为#(空),就执行下面代码 e.preventDefault();//取消事件的默认动作 $(document).scrollTop($(href).offset().top); if (tabId) {//当tabId有值的时候,执行下面代码 $('#feature-tab a[href=#' + tabId + ']').ta...
2016-06-13