摘要: const days = endDate.getTime() - startDate.getTime() < 0 ? 0 : Number(new BigNumber(new BigNumber(endDate.getTime() - startDate.getTime()).dividedBy(2 阅读全文
posted @ 2021-12-24 16:28 密蒙 阅读(38) 评论(0) 推荐(0) 编辑
摘要: const array1 = [8, 35, 12, 25, 66]; array1.unshift(100); console.log('向数组的最前端添加一个或多个值,添加后array1的结果:' + array1); //向数组的最前端添加一个或多个值,添加后array1的结果:100,8,3 阅读全文
posted @ 2021-12-24 13:54 密蒙 阅读(18) 评论(0) 推荐(0) 编辑