2023年6月20日

JavaScript 指定格式化日期的方式

摘要: JavaScript 指定格式化日期的方式 1、使用let、 const 以及箭头函数=> 的方式 function formatDate(date, format) { const map = { "M": date.getMonth() + 1, // 月份 "d": date.getDate( 阅读全文

posted @ 2023-06-20 10:43 滔Roy 阅读(45) 评论(0) 推荐(0) 编辑

导航