This commit is contained in:
afc163 2016-01-10 19:48:39 +08:00
parent 016b04f4d3
commit adf9a11b8b
2 changed files with 4 additions and 2 deletions

View File

@ -38,6 +38,8 @@
我们将常见的导航模式分为:侧栏导航和顶部导航,两者各有优缺点,设计者可以根据各自的业务需求进行选择。
前端实现代码可以参考 [常用布局](/docs/spec/layout#layout-demo-top)。
## 侧栏导航
---

View File

@ -44,8 +44,8 @@ InstantClickChangeFns.push(function() {
});
function hashChange() {
$('.anchor a').removeClass('current');
$('.anchor a[href="' + decodeURI(location.hash) + '"]').addClass('current');
$('.demos-anchor a').removeClass('current');
$('.demos-anchor a[href="' + decodeURI(location.hash) + '"]').addClass('current');
}
hashChange();