关于去日期的问题? NowDay:星期四NowMotn:8月 这里month是从0-11 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var NowYear =NowDate.getFullYear();var NowMonth=NowDate.getMonth()+1;var NowDate=NowDate.getDate(); function show_time(){ var datetimeinfo,today,thisDay,thisWeek; today=new Date(); thisDay=today.getDay(); if( thisDay==0 ){thisWeek="<font color=red>日</font>";} else if( thisDay==1 ) {thisWeek="一";} else if( thisDay==2 ) {thisWeek="二";} else if( thisDay==3 ) {thisWeek="三";} else if( thisDay==4 ) {thisWeek="四";} else if( thisDay==5 ) {thisWeek="五";} else if( thisDay==6 ) {thisWeek="<font color=red>六</font>";} datetimeinfo=(today.getYear() -0 ) + "年" + (today.getMonth() + 1 ) + "月" + today.getDate() + "日 星期" + thisWeek; document.write(datetimeinfo);} 问一个问题 如何给Ext.tree.ColumnTree添加搜索栏? 用jquery写的非常好的tab菜单,嵌入到我的代码时出现了一点问题,麻烦高手指点一下 javascript 获取整个网页的大小 ASP高手请进:有关onclick事件将一组数据提交到form当中 修改注册表启动Activex控件 javascript的添加事件的一个问题 请问页面高手:我的js三级弹出菜单怎样才能不被flash挡住 javaScript中能不能根据表名来叛定表中的"radio"按钮是否被选中 ★★十万火急的问题 两个JS的初级问题,高手请看看。马上揭帖 如何消除 marquee 的间歇空白??
var NowMonth=NowDate.getMonth()+1;
var NowDate=NowDate.getDate();
var datetimeinfo,today,thisDay,thisWeek;
today=new Date();
thisDay=today.getDay();
if( thisDay==0 ){thisWeek="<font color=red>日</font>";}
else if( thisDay==1 ) {thisWeek="一";}
else if( thisDay==2 ) {thisWeek="二";}
else if( thisDay==3 ) {thisWeek="三";}
else if( thisDay==4 ) {thisWeek="四";}
else if( thisDay==5 ) {thisWeek="五";}
else if( thisDay==6 ) {thisWeek="<font color=red>六</font>";}
datetimeinfo=(today.getYear() -0 ) + "年" + (today.getMonth() + 1 ) + "月" + today.getDate() + "日 星期" + thisWeek;
document.write(datetimeinfo);
}