黄聪:js、Jquery将日期例如(20120903)转换为数字格式

alert(new Date('2012-09-03'));

alert(+new Date('2012-09-03'));  // 转化为数字

原文地址:https://www.cnblogs.com/huangcong/p/2668422.html