用 a 标签进行包裹即可。
The badge can be wrapped with a tag to make it linkable.
a
import { Badge } from 'antd'; ReactDOM.render( <a href="#"> <Badge count={5}> <span className="head-example" /> </Badge> </a>, mountNode, );