zhuxinbo 5 年之前
父節點
當前提交
02415965a0
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/utils/getDay.js

+ 3 - 1
src/utils/getDay.js

@@ -1,5 +1,5 @@
 
 
-
+//获取某一天前的日期
 function getDay(day) {
 function getDay(day) {
     var today = new Date()
     var today = new Date()
   
   
@@ -53,6 +53,8 @@ Date.prototype.format = function (fmt) {
     return fmt;
     return fmt;
   }
   }
 
 
+
+  //获取某一月份 周五到周四的日期
 export  function allWeeks(now_month) {
 export  function allWeeks(now_month) {
     let week_array = [];
     let week_array = [];
     let today = new Date(Date.parse(now_month));
     let today = new Date(Date.parse(now_month));