笔记
「已注销」
这个作者很懒,什么都没留下…
展开
-
js工具函数总结
获取浏览器 Cookie 的值 export const cookie = name => ; ${document.cookie}.split(; ${name}=).pop().split(‘;’).shift(); 将 RGB 转换为十六进制 export const rgbToHex = (r, g, b) => “#” + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1); 复制原创 2022-04-12 09:03:07 · 832 阅读 · 0 评论 -
git笔记
git stash git stash pop 做一个假设,现在在feature/newFun分支上面开发功能,现在需要你去feature/oldFunc上面去修改一个小的bug,这时候可以在newFunc分支上面使用git stash 将修改的文件暂存起来,等到在另一个bug分支修改完之后切换到feature/newFunc之后使用git stash pop git stash list :查看stash了哪些存储 git stash clear :删除所有缓存的stash git pul.原创 2021-04-25 20:17:45 · 83 阅读 · 1 评论