本日/本周/本月/本季/本年 const unit = 'day' | 'week' | 'month' | 'quarter' | 'year'; const startD...

IP属地:贵州
本日/本周/本月/本季/本年 const unit = 'day' | 'week' | 'month' | 'quarter' | 'year'; const startD...
项目中需要根据本日/本周/本月/本季/本年,以及,上周/上月/上季来对数据进行筛选。如果传到后台再用Calendar获取感觉有点麻烦。因此选择了moment.js。 本日/本...