请检查jsfiddle。
代码:
$( document ).ready(function() {
var str = moment("/Date(1490065200000)/"); //Convert to "21/03/2017"
console.log(str.toString());
});
这里的文档:https : //momentjs.com/docs/#/parsing/asp-net-json-date/
任何解决方案?
希望我能帮到你。
var str = moment("/Date(1490065200000)/").format("DD/MM/YYYY");
console.log(str);
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句