momentjs经常使用命令汇总

npm install moment 计算两个时间的差:moment(time1).diff(time2, type, boolean)npm time1和time2支持类型:Moment|String|Number|Date|Array;orm type支持值为:years, months, weeks, days, hours, minutes, seconds;form 第三个参数默认为fa
相关文章
相关标签/搜索