鍍金池/ 問答/HTML/ IE11下,react點擊事件onClick無效

IE11下,react點擊事件onClick無效

clipboard.png
點擊驗證碼圖片應(yīng)該會刷新驗證碼,在谷歌下正常,但是在IE11下點擊事件無效是什么情況

<Col
  span={8}
  onClick={this.getCaptcha.bind(this)}
  style={
    { textAlign: 'right', marginTop: '-3px' }
  }
>
  <img src={captcha} alt="驗證碼" />
</Col >
getCaptcha = (captcha) => {
    this.props.dispatch({
      type: 'user/fetchCaptcha',
    });
    this.setState({
      captcha,
    });
}
回答
編輯回答
安于心

引入babel-polyfill

2017年6月1日 15:14
編輯回答
糖豆豆

onClick加到img上,不要放到Col上試試。

2018年3月6日 18:32
編輯回答
掛念你

給圖片src加時間戳

2017年2月23日 15:27