js中怎样判断一个字符串是不是时间格式

2025-04-25 06:50:03
推荐回答(1个)
回答1:

var a = "时间字符串";
var b = new Date(a);
console.log(b);