//字符串转时间格式
function getDatechange(strDate) {
var date = eval('new Date(' + strDate.replace(/\d+(?=-[^-]+$)/,
function (a) { return parseInt(a, 10) - 1; }).match(/\d+/g) + ')');
return date;
}
function getDatechange1(d){
var date = new Date(d);
return date;
}
字符串转时间格式
最新推荐文章于 2024-04-18 19:06:27 发布