//字符串转时间格式
function getDate(strDate) {
var date = eval('new Date(' + strDate.replace(/\d+(?=-[^-]+$)/,
function (a) { return parseInt(a, 10) - 1; }).match(/\d+/g) + ')');
return date;
}
JQuery 字符串转时间格式
猜你喜欢
转载自blog.csdn.net/hnfeitianwugui/article/details/9119367
今日推荐
周排行