var timeTemp=ret[0].updatedAt;
// '2016-11-16T12:12:43.388Z'
// console.log(JSON.stringify(ret));
var s1 = new Date(timeTemp);
var s2 = new Date();
var days = s2.getTime() - s1.getTime();
var time = parseInt(days / (1000 * 60 * 60 * 24));
转载于:https://my.oschina.net/AdamHoly/blog/1545217