This commit is contained in:
2022-05-03 19:49:45 +08:00
parent ef97468194
commit a0a73cd2f1
6 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -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;