1、点击 onClick
例子里面是匿名函数的写法
export default class App extends React.Component {
render() {
return (
<div>
<input/>
<button onClick={
()=>{
alert("触发函数")
}
}>add</button>
</div>
)
}
}
2、鼠标移动到就触发 onm ouseOver
标签:触发,函数,render,记录,指令,export From: https://www.cnblogs.com/kaibindirver/p/17347502.html