摘要:
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( 阅读全文
摘要:
//时间格式转换 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 阅读全文