no message
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@
|
|||||||
return(
|
return(
|
||||||
<div>
|
<div>
|
||||||
{/*这种内联函数,更新会多次调用 时有bug */}
|
{/*这种内联函数,更新会多次调用 时有bug */}
|
||||||
<input type="text" ref={c=>this.haha=c}/>
|
<input type="text" ref={(c)=>this.haha=c}/>
|
||||||
<button onClick={this.haha1}>点我</button>
|
<button onClick={this.haha1}>点我</button>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user