<script>
var weekdate= getWeekDate()
switch(weekdate){
case "星期一":;
case "星期二":;
case "星期三":;
case "星期四":;
case "星期五":alert("今天是"+weekdate+",今天要上班");break;
case "星期六":;
case "星期日":alert("今天是"+weekdate+",今天休息");break; console.log(working );break
}
function getWeekDate() {
var now = new Date();
var day = now.getDay();
var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
var week = weeks[day];
return week;
}
</script>