flash as2.0动态文本为什么显示不出来
nowdate=newDate();year=nowdate.getFullYear();month=nowdate.getMonth()+1;date=nowdate....
nowdate = new Date();
year = nowdate.getFullYear();month = nowdate.getMonth()+1;date = nowdate.getDate();day = nowdate.getDay();hour = nowdate.getHours();minute = nowdate.getMinutes();second = nowdate.getSeconds();enddate = new Date(2012, 6, 28, 3, 1, 2);cha = (enddate.getTime()-nowdate.getTime())/1000;shengyuday = Math.floor(cha/(3600*24));shengyuhour = Math.floor((cha-shengyuday*24*3600)/3600);shengyuminute = Math.floor((cha-shengyuday*24*3600-shengyuhour*3600)/60);shengyusecond = Math.floor(cha-shengyuday*24*3600-shengyuhour*3600-shengyuminute*60);if (month<10) { month = "0"+month;}if (date<10) { date = "0"+date;}if (hour<10) { hour = "0"+hour;}if (minute<10) { minute = "0"+minute;}if (second<10) { second = "0"+second;}if (shengyuday<10) { shengyuday = "0"+shengyuday;}if (shengyuhour<10) { shengyuhour = "0"+shengyuhour;}if (shengyuminute<10) { shengyuminute = "0"+shengyuminute;}if (shengyusecond<10) { shengyusecond = "0"+shengyusecond;}jishi = String(shengyuday)+"天"+String(shengyuhour)+"时"+String(shengyuminute)+"分"+String(shengyusecond)+"秒";nowtime = "今天是"+year+"年"+month+"月"+date+"日"+"星期"+day+"现在时刻"+hour+":"+minute+":"+second; 展开
year = nowdate.getFullYear();month = nowdate.getMonth()+1;date = nowdate.getDate();day = nowdate.getDay();hour = nowdate.getHours();minute = nowdate.getMinutes();second = nowdate.getSeconds();enddate = new Date(2012, 6, 28, 3, 1, 2);cha = (enddate.getTime()-nowdate.getTime())/1000;shengyuday = Math.floor(cha/(3600*24));shengyuhour = Math.floor((cha-shengyuday*24*3600)/3600);shengyuminute = Math.floor((cha-shengyuday*24*3600-shengyuhour*3600)/60);shengyusecond = Math.floor(cha-shengyuday*24*3600-shengyuhour*3600-shengyuminute*60);if (month<10) { month = "0"+month;}if (date<10) { date = "0"+date;}if (hour<10) { hour = "0"+hour;}if (minute<10) { minute = "0"+minute;}if (second<10) { second = "0"+second;}if (shengyuday<10) { shengyuday = "0"+shengyuday;}if (shengyuhour<10) { shengyuhour = "0"+shengyuhour;}if (shengyuminute<10) { shengyuminute = "0"+shengyuminute;}if (shengyusecond<10) { shengyusecond = "0"+shengyusecond;}jishi = String(shengyuday)+"天"+String(shengyuhour)+"时"+String(shengyuminute)+"分"+String(shengyusecond)+"秒";nowtime = "今天是"+year+"年"+month+"月"+date+"日"+"星期"+day+"现在时刻"+hour+":"+minute+":"+second; 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询