📌  相关文章
📜  js 字符串到日期 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:57.858000             🧑  作者: Mango

代码示例6
var ts = '1471793029764';
ts = Number(ts); // cast it to a Number
var date = new Date(ts); // works

var invalidDate = new Date('1471793029764'); // does not work. Invalid Date