美文网首页
calendar 单个日期

calendar 单个日期

作者: nCov | 来源:发表于2020-08-22 11:43 被阅读0次
单个日期选择

需求1:起始日期为本年1月1日
需求2:截止日期为当前日期

 minDate: new Date(
      new Date().getFullYear(),
      new Date().getMonth()- new Date().getMonth(),
      new Date().getMonth()- (new Date().getMonth()-1)
    ).getTime(),
    maxDate: Date.now(),
初始日期.jpg
结束日期.jpg

相关文章

网友评论

      本文标题:calendar 单个日期

      本文链接:https://www.haomeiwen.com/subject/ybtmrktx.html