如何将此时间戳转换1382086394000为2013-10-18 08:53:14使用javascript中的函数?目前我有这个功能:
1382086394000
2013-10-18 08:53:14
function cleanDate(d) {return new Date(+d.replace(/\/Date\((\d+)\)\//, '$1'));}
javascript timestamp date node.js express
date ×1
express ×1
javascript ×1
node.js ×1
timestamp ×1