// 获取两个比较值的毫秒数
var postman_confirmtime_ms = Date.parse(new Date(data.postman_confirmtime.replace(/-/g, "/"))); var currentTime_ms=(new Date()).getTime();
//转换成小时比较 subtractHour=Math.floor((currentTime_ms-begintime_ms)/1000*3600); console.info(subtractHour);
http://qiaolevip.iteye.com/blog/1329292