摘要: 去除字符串最后一位 1. 使用slice方法 2. substr方法 3. substring方法 阅读全文
posted @ 2020-04-16 20:57 香荣如梦 阅读(49523) 评论(1) 推荐(0) 编辑
摘要: 数组去重的方法 1. 利用filter方法+indexOf 2. 利用es6的Set()去重 3. 双重for循环splice去重 8. 利用reduce()方法 阅读全文
posted @ 2020-04-16 20:20 香荣如梦 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 解决方法:在设置中搜索到editor.snippetSuggestions这个设置,其中有四个选项top、bottom、inline、none四个选项,选择top即可 阅读全文
posted @ 2020-04-16 18:20 香荣如梦 阅读(1878) 评论(0) 推荐(0) 编辑