function getWeekString(date){
if(!date)
return '';
var WeekArr = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
var nowDayOfWeek = date.getDay();
return WeekArr[nowDayOfWeek];
}
根据日期判断出星期
最新推荐文章于 2023-08-23 16:46:15 发布
function getWeekString(date){
if(!date)
return '';
var WeekArr = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
var nowDayOfWeek = date.getDay();
return WeekArr[nowDayOfWeek];
}