js(react.js) button click 事件无法触发

今天遇到一个诡异的问题。button 上的点击事件触发不了。

找个几个小时,原因是 js 报错了

<Button type="primary" htmlType="submit" onClick={this.handleDraft} style={hidden}>存为草稿</Button>
  
<Button type="primary" htmlType="submit" onClick={this.handleNoDraft} style={hidden}>发布活动</Button>

 

posted @ 2017-05-22 21:18  isykw  阅读(4244)  评论(0编辑  收藏  举报