xxx
This commit is contained in:
+3
-2
@@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: chenxuan
|
||||
* @Date: 2022-01-02 22:09:19
|
||||
* @LastEditTime: 2022-03-20 14:35:58
|
||||
* @LastEditTime: 2022-05-02 12:18:45
|
||||
* @LastEditors: chenxuan
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
@@ -23,11 +23,12 @@
|
||||
// 这种写法,更新时不会调用
|
||||
haha=(c)=>{
|
||||
this.hehe=c;
|
||||
console.log("xx")
|
||||
|
||||
}
|
||||
change=()=>{
|
||||
const {ishot}=this.state;
|
||||
this.setState({ishot:!ishot});
|
||||
console.log(this.hehe.value)
|
||||
}
|
||||
render(){
|
||||
const {ishot}=this.state;
|
||||
|
||||
Reference in New Issue
Block a user