JS获取当天是周几
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;
}
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。