摘要: getLastDay(year, month) { let newYear = year, newMonth = month++; if (month > 12) { newMonth -= 12; newYear++; } let newDate = new Date(newYear, newMo 阅读全文
posted @ 2022-02-24 10:17 上官兰雨 阅读(7) 评论(0) 推荐(0) 编辑
摘要: toDemical(val) { let valNew = Math.round(parseFloat(val) * 100) / 100; let splitVal = valNew.toString().split("."); if (splitVal.length == 1) { valNew 阅读全文
posted @ 2022-02-24 09:51 上官兰雨 阅读(68) 评论(0) 推荐(0) 编辑