mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix docs
This commit is contained in:
parent
016b04f4d3
commit
adf9a11b8b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user