09 2020 档案

摘要:获得当前日期 let date = new Date() console.log(date); console.log(typeof date); // obj console.log(date * 1); // 时间戳 let date1 = Date() console.log(date1); 阅读全文
posted @ 2020-09-29 09:55 小昱同学 阅读(2892) 评论(0) 推荐(0)
摘要:let arr = ['张三','李四','王五','赵六'] function arrayRandomFn(arr,start = 1,end){ end = end?end:arr.length; start--; const index = start + Math.floor(Math.ra 阅读全文
posted @ 2020-09-28 15:13 小昱同学 阅读(247) 评论(0) 推荐(0)
摘要:目前使用的项目是用vue-cli脚手架创建的,vue的版本是2.6.11,可以通过修改vue.config.js文件的配置来关闭eslint。 vue.config.js module.exports = { lintOnSave: false } 第五篇随笔,这篇写的很水,比较常用的一个配置。 阅读全文
posted @ 2020-09-07 16:16 小昱同学 阅读(1557) 评论(0) 推荐(0)