![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
报错
龟霸也是高达
Github主页:https://github.com/gitgundam
展开
-
关于 m1 mac 在bigsur下,安装brew出现‘‘zsh: command not found: brew‘‘的问题
我在stackoverflow上发现了答案,在此分享一下https://stackoverflow.com/questions/36657321/after-installing-brew-i-get-command-not-found-brew第一步输入vim ~/.zshrc第二步编辑.zshrc文件添加这个命令export PATH=/opt/homebrew/bin:$PATH最后输入source ~/.zshrc效果 ...原创 2021-04-30 12:33:07 · 3928 阅读 · 0 评论 -
记录一下自己过于年轻犯下的过错(关于数组的find或filter)
今天写项目,想实现一个,点击链接,进入二级页面,二级页面的内容,通过链接的$route.params.id在本地缓存中寻找到.以下就是localStorage内的内容通过页面的id,就可以寻找到具体对象问题来了,这个数组里的对象中的id是number$route.params.id中的id是string然后我一时脑抽,忽略了这个问题,将this.recordList.find(((item: { id: number}) => item.id === id))改成了this.re原创 2020-11-23 15:27:31 · 148 阅读 · 0 评论