0
点赞
收藏
分享

微信扫一扫

js搜索条件默认其起始一个月

玩物励志老乐 2022-03-11 阅读 82

export const getCreateMonth = (num = 1) => {
var myDate = new Date()
myDate.setMonth(myDate.getMonth() - num)
let $_f_date = myDate.getFullYear() + ‘-’ + (myDate.getMonth() + 1) + ‘-’ + myDate.getDate()
return $_f_date
}

举报

相关推荐

0 条评论