怎么实现时间的实时跳动???在线等 function showtime(){ var Digital=new Date() document.text1.value=Digital setTimeout("showtime()",1000)} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 timer控件用在winform里比较好吧 //***********显示时间*****************function clock() {crtdate=new Date();crthours=crtdate.getHours();crtminutes=crtdate.getMinutes();crtSeconds=crtdate.getSeconds();if (crthours >= 7 && crthours < 12) apm="上午";else if (crthours >= 12 && crthours < 19) apm="下午";else apm="晚上";if (crthours >12 ) crthours=crthours % 12;if (crtminutes < 10) crtminutes="0"+crtminutes;if (crtSeconds < 10)crtSeconds="0" + crtSeconds; if(crtdate.getDay()==0) day = "星期日" if(crtdate.getDay()==1) day = "星期一" if(crtdate.getDay()==2) day = "星期二" if(crtdate.getDay()==3) day = "星期三" if(crtdate.getDay()==4) day = "星期四" if(crtdate.getDay()==5) day = "星期五" if(crtdate.getDay()==6) day = "星期六"viewtime= day + " " + apm + " " + crthours + " 点 " + crtminutes + " 分 " + crtSeconds + " 秒 " ;esh.innerText=viewtime;setTimeout("clock()",1000);};///调用<span id=esh></span> csdn连此问题都解决不了吗???? datatable 统计问题 什么是静态变量,静态方法,静态类。。。。 【求助】JS的问题,解释下 返回Datatabel执行存储过程的方法出错 關于.net遍歷非當前頁面所有控件的問題 如何更改用VS.NET开发时自动生成的类名? 请教如何选择型显示绑定控件? 关于C#写的ActiveX在IE中显示不出来的问题,紧急。。。 救救我! 在DataGrid數據綁定時獲取每一行指定模板列的值時出錯 关于两个下拉列表框关联问题
function clock()
{
crtdate=new Date();
crthours=crtdate.getHours();
crtminutes=crtdate.getMinutes();
crtSeconds=crtdate.getSeconds();
if (crthours >= 7 && crthours < 12)
apm="上午";
else if (crthours >= 12 && crthours < 19)
apm="下午";
else
apm="晚上";
if (crthours >12 )
crthours=crthours % 12;
if (crtminutes < 10)
crtminutes="0"+crtminutes;
if (crtSeconds < 10)
crtSeconds="0" + crtSeconds;
if(crtdate.getDay()==0) day = "星期日"
if(crtdate.getDay()==1) day = "星期一"
if(crtdate.getDay()==2) day = "星期二"
if(crtdate.getDay()==3) day = "星期三"
if(crtdate.getDay()==4) day = "星期四"
if(crtdate.getDay()==5) day = "星期五"
if(crtdate.getDay()==6) day = "星期六"
viewtime= day + " " + apm + " " + crthours + " 点 " + crtminutes + " 分 " + crtSeconds + " 秒 " ;
esh.innerText=viewtime;
setTimeout("clock()",1000);
};///调用
<span id=esh></span>