【发布时间】:2014-12-06 17:15:31
【问题描述】:
module.exports = React.createClass({
click: function(e){
console.log(e)
},
render: function() {
return div({className: "thing1", children:[
div({className: "thing2", onClick: this.click})
]})
}
})
传递给的事件包含点击对象的所有内容,但值为空。
Object { dispatchConfig: null, dispatchMarker: null, nativeEvent: null, type: null, target: null, currentTarget: null, eventPhase: null, bubbles: null, cancelable: null, timeStamp: null, 22 more… }
有什么想法吗?
【问题讨论】:
标签: javascript reactjs