摘要:
遇到的问题: 使用sudo vi ~/.bash_profile编辑文件时,提示Found a swap file by the name "xxx.swp" 原因: 存在了同名的文件,但是这个同名的文件格式不一样。这个文件.bash_profile.swp是由于我之前创建编辑内容的时候没有正常保存 阅读全文
摘要:
1.获取字符串中出现最多的字母 getMost(str) { const a = {} const b = str.split('') for (let i = 0; i < b.length; i++) { console.log('让我康康',b[i]) if (a[b[i]]) { a[b[i 阅读全文