javascript中switch循环值后面跟的的冒号是什么意思?例如case 0:
switch(time.getDay()){case0:weekday="星期日";break;case1:weekday="星期一";break;case2:weekd...
switch(time.getDay()){case 0:weekday ="星期日";break;case 1:weekday ="星期一";break;case 2:weekday ="星期二";break;case 3:weekday ="星期三";break;case 4:weekday ="星期四";break;case 5:weekday ="星期五";break;case 6:weekday ="星期六";break;}
展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询