摘要:
let a = new Set([1, 23, 5, 6, 7]) let b = new Set([1, 5, 2, 3]) console.log(a.has(1)); //查找 //并集 console.log([...a, ...b]); //交集 console.log( new Set( 阅读全文
posted @ 2020-12-06 22:20
外行的小白
阅读(94)
评论(0)
推荐(0)
摘要:
//时间格式转换 const date = new Date('1998-01-27 10:11:12') function dateFormat(date, format = 'YYYY-MM-DD HH:mm:ss') { const config = { YYYY: date.getFullY 阅读全文
posted @ 2020-12-06 22:14
外行的小白
阅读(125)
评论(0)
推荐(0)

浙公网安备 33010602011771号