//字符串转时间格式
function getDate(strDate) {
var date = eval('new Date(' + strDate.replace(/\d+(?=-[^-]+$)/,
function (a) { return parseInt(a, 10) - 1; }).match(/\d+/g) + ')');
return date;
}
JQuery 字符串转时间格式
最新推荐文章于 2021-02-03 09:13:33 发布