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) {
     var today = new Date()
   
@@ -53,6 +53,8 @@ Date.prototype.format = function (fmt) {
     return fmt;
   }
 
+
+  //获取某一月份 周五到周四的日期
 export  function allWeeks(now_month) {
     let week_array = [];
     let today = new Date(Date.parse(now_month));