提交 adf9a11b 编写于 作者: A afc163

fix docs

上级 016b04f4
......@@ -38,6 +38,8 @@
我们将常见的导航模式分为:侧栏导航和顶部导航,两者各有优缺点,设计者可以根据各自的业务需求进行选择。
前端实现代码可以参考 [常用布局](/docs/spec/layout#layout-demo-top)
## 侧栏导航
---
......
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册