10 2021 档案

摘要:撤销commit一般用git reset ,语法如下: git reset [ --mixed | --soft | --hard] [<commit ID>] 1.使用参数--mixed(默认参数),如git reset --mixed 或git reset 撤销git commit,撤销git 阅读全文
posted @ 2021-10-27 17:40 韩帅 阅读(2437) 评论(0) 推荐(0) 编辑
摘要:假设一个很常见的应用场景:有一个用户未读消息列表,我们希望在某一时刻主动刷新这个列表。 我们使用seloctor来实现这个功能: const uuid = () => Math.random(); // 生成一个唯一的id即可 const forceUpdateState = atom({ key: 阅读全文
posted @ 2021-10-08 23:25 韩帅 阅读(142) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示