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