我在Link里面添加class没反应,我看它封装的组件activeClassName是string,不知为啥就是起不到作用
<Link to={{pathname:"/printPage"}} activeClassName="dddfff" target="_blank">打印</Link>
...propTypes: { to: oneOfType([string, object, func]), query: object, hash: string, state: object, activeStyle: object, activeClassName: string, onlyActiveOnIndex: bool.isRequired, onClick: func, target: string },
九州编程