- 博客(2)
- 收藏
- 关注
转载 模板中将数字格式的日期化为yyyy-MM-dd样式
<!--数据容器--> <div id="content"></div> <!--/数据容器--><script id="test" type="text/html"> /*对time对象进行格式化*/ {{time | dateFormat:'yyyy年 MM月 dd日 hh:mm:ss'}} </script>/** * 对日期进行格式化, * @param date 要
2017-05-27 11:22:46 1087
原创 js中将数字格式的日期化为yyyy-MM-dd样式
1、在js中先加载一下代码,不需要做任何修改Date.prototype.format = function (format) { var o = { "M+": this.getMonth() + 1, //month "d+": this.getDate(), //day "h+": this.getHours(), //hour
2017-05-27 11:07:13 1318
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人