javascript星期/周日期
let nowDate = new Date();
//nowDate.getDay() 当前日期是本周的第几天
nowDate.setDate(nowDate.getDate() - nowDate.getDay() + 1);
let monDay = nowDate.getFullYear()+'-'+nowDate.getMonth()+'-'+nowDate.getDate();
JavaScript在1995年由Netscape(网景) (美国计算机服务公司)的Brendan Eich创作的,而实际上 英语国家、犹太教、日本人一般认为一个星期开始于星期日,所以有
nowDate.getDay() + 1;但即使如此 国际标准 ISO 8601 已将星期一定为一星期的第一天 。
                    
                
                
            
        
浙公网安备 33010602011771号