1 //字符串转成时间
2 function getDate(strDate) {
3 var date = eval('new Date(' + strDate.replace(/\d+(?=-[^-]+$)/,
4 function (a) { return parseInt(a, 10) - 1; }).match(/\d+/g) + ')');
5 return date;
6 }
1 //字符串转成时间
2 function getDate(strDate) {
3 v