--- order: 6 title: zh-CN: 监听锚点链接改变 en-US: Listening for anchor link change --- ## zh-CN 监听锚点链接改变 ## en-US Listening for anchor link change. ```jsx import { Anchor } from 'antd'; const { Link } = Anchor; const onChange = link => { console.log('Anchor:OnChange', link); }; ReactDOM.render( , mountNode, ); ```