JS获取当天是周几
dt2 = new Date();
var weekDay = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
if( weekDay[dt2.getDay()] == '星期一' )
{
str += line[i].SENDTIMEMONDAY;
}
if( weekDay[dt2.getDay()] == '星期二' )
{
str += line[i].SENDTIMETUESDAY;
}
if( weekDay[dt2.getDay()] == '星期三' )
{
str += line[i].SENDTIMEWEDNESDAY;
}
if( weekDay[dt2.getDay()] == '星期四' )
{
str += line[i].SENDTIMETHURSDAY;
}
if( weekDay[dt2.getDay()] == '星期五' )
{
str += line[i].SENDTIMEFRIDAY;
}
if( weekDay[dt2.getDay()] == '星期六' )
{
str += line[i].SENDTIMESATURDAY;
}
if( weekDay[dt2.getDay()] == '星期天' )
{
str += line[i].SENDTIMESUNDAY;
}
var weekDay = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
if( weekDay[dt2.getDay()] == '星期一' )
{
str += line[i].SENDTIMEMONDAY;
}
if( weekDay[dt2.getDay()] == '星期二' )
{
str += line[i].SENDTIMETUESDAY;
}
if( weekDay[dt2.getDay()] == '星期三' )
{
str += line[i].SENDTIMEWEDNESDAY;
}
if( weekDay[dt2.getDay()] == '星期四' )
{
str += line[i].SENDTIMETHURSDAY;
}
if( weekDay[dt2.getDay()] == '星期五' )
{
str += line[i].SENDTIMEFRIDAY;
}
if( weekDay[dt2.getDay()] == '星期六' )
{
str += line[i].SENDTIMESATURDAY;
}
if( weekDay[dt2.getDay()] == '星期天' )
{
str += line[i].SENDTIMESUNDAY;
}