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