The body of a for-in should be wrapped in an if statement to filter unwanted properties from the pro
摘要:
ESLint模式下for in遍历对象会报错,可以这样解决: let val = { shu: [1, 2, 3] }; for (let item in val) { if (val.hasOwnProperty(item)) { console.log(item); } } 因为我们在遍历一个对 阅读全文
摘要:
ps命令将某个进程显示出来 grep命令是查找 中间的|是管道命令 是指ps命令与grep同时执行 PS是LINUX下最常用的也是非常强大的进程查看命令 grep命令是查找,是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。 grep全称是Global Regular Ex 阅读全文
摘要:
import moment from 'moment'; moment.locale('zh-cn');或者moment.lang('zh-cn');即可显示中文 阅读全文