一个JS的日期格式化算法示例 复制代码 代码如下: function dateFormat(date, format) { var o = { "M+": date getMonth() + 1, JavaScript 2022-04-04 90 点赞 1 评论 136 浏览