var today=new Date();
var currentDate=today.getDay();//获取存储当前日期
var weekday=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
console.log("今天是:" + weekday[currentDate]);
var today=new Date();
var currentDate=today.getDay();//获取存储当前日期
var weekday=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
console.log("今天是:" + weekday[currentDate]);