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