【发布时间】:2019-06-30 11:34:39
【问题描述】:
我有:
one = () => {
//do something
}
two = () => {
//do something
}
<div>
<button onClick={/*this.one, this.two (it doens't work)*/}>Go</button>
</div>
如何只使用一个 onClick 调用两个函数?
【问题讨论】:
-
为什么不能在一个函数中调用两个函数?
标签: javascript html reactjs