摘要: //日期格式化 Date.prototype.format = function(fmt) { var o = { "M+" : this.getMonth() + 1, "d+" : this.getDate(), "H+" : this.getHours(), "m+" : this.getMi 阅读全文
posted @ 2020-08-18 14:10 孤街浪友 阅读(38) 评论(0) 推荐(0)
摘要: 在需要转换数据格式的单元格里写上 templet:"<div>{{layui.toDateString(d.print.printDate,'yyyy-MM-dd')}}</div>" layui.toDateString是layui的内置方法,其中第一个参数是需要转换的值,第二个参数是转换格式。 阅读全文
posted @ 2020-05-27 15:10 孤街浪友 阅读(40) 评论(0) 推荐(0)