日期:2014-05-16 浏览次数:20372 次
var time1='2011-12-06 08:30:25' var time2="2011-12-06 12:30:00"; alert(((new Date(time2.replace(/-/g, '/')) - new Date(time1.replace(/-/g, '/'))) / (1000 * 60)).toFixed(2));