获取当前年份
moment().year()
根据时间戳返回日期时间
//2017-08-14 13:44:00
moment.unix(timestamp).format("YYYY-MM-DD HH:mm:ss");
人性化时间格式,几分钟前,几小时前
moment.unix(date).fromNow();
获取当前时间戳
moment().unix()
moment().year()
//2017-08-14 13:44:00
moment.unix(timestamp).format("YYYY-MM-DD HH:mm:ss");
moment.unix(date).fromNow();
moment().unix()