moment.js的方法总结

获取上个月今天的日期,格式以YYYY-MM-DD显示
var t18=moment().subtract(1, 'months').format('YYYY-MM-DD');
相关文章
相关标签/搜索