摘要: git commit之后,如何撤销commit 修改了本地代码,然后使用: git add file git commit -m "修改原因" 执行commit之后,还没有执行push时,想要撤销这次的commit,该怎么办? 解决方案: 使用命令: // 只撤销commit,不删除add之后工作空 阅读全文
posted @ 2021-04-27 15:55 春燕啄春泥 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1、设置state变量的值 // 例一 this.setState({ [`fileList${index}`]: index }) // 例二 function(type){ this.setState({ [type]: `file${type}` }) } 2、获取state变量的值 this 阅读全文
posted @ 2021-04-27 09:54 春燕啄春泥 阅读(491) 评论(0) 推荐(0) 编辑