no message

This commit is contained in:
macbook
2024-04-07 00:01:59 +08:00
parent b76c6c3d74
commit 68bfce7638
+1 -1
View File
@@ -26,7 +26,7 @@
return(
<div>
{/*这种内联函数,更新会多次调用 时有bug */}
<input type="text" ref={c=>this.haha=c}/>
<input type="text" ref={(c)=>this.haha=c}/>
<button onClick={this.haha1}>点我</button>
</div>
)