moment.js的方法總結

獲取上個月今天的日期,格式以YYYY-MM-DD顯示
var t18=moment().subtract(1, 'months').format('YYYY-MM-DD');
相關文章
相關標籤/搜索