修复了ms.util的时间格式化默认格式问题
This commit is contained in:
parent
c4bcf2b999
commit
fc144a457d
|
@ -62,7 +62,7 @@
|
||||||
fmt: function(de, fmt) {
|
fmt: function(de, fmt) {
|
||||||
var date = new Date(typeof de == "string"?de.replace(/-/g, "/"):de);
|
var date = new Date(typeof de == "string"?de.replace(/-/g, "/"):de);
|
||||||
if (!fmt) {
|
if (!fmt) {
|
||||||
fmt = "yyyy-mm-dd";
|
fmt = "yyyy-MM-dd";
|
||||||
}
|
}
|
||||||
var o = {
|
var o = {
|
||||||
"M+": date.getMonth() + 1, //月份
|
"M+": date.getMonth() + 1, //月份
|
||||||
|
|
Loading…
Reference in New Issue