早教吧作业答案频道 -->其他-->
懂flash的大神请进啊!mydate=newDate();seconds=mydate.getSeconds();minutes=mydate.getMinutes();hours=mydate.getHours();day=mydate.getDay();date=mydate.getDate();month=mydate.getMonth();year=mydate.getFullYear();if(day==
题目详情
懂flash的大神请进啊!
mydate = new Date();
seconds = mydate.getSeconds();
minutes = mydate.getMinutes();
hours = mydate.getHours();
day = mydate.getDay();
date = mydate.getDate();
month = mydate.getMonth();
year = mydate.getFullYear();
if (day==0) {
day = "星期日";
} else if (day==1) {
day = "星期一";
} else if (day==2) {
day = "星期二";
} else if (day==3) {
day = "星期三";
} else if (day==4) {
day = "星期四";
} else if (day==5) {
day = "星期五";
} else if (day==6) {
day = "星期六";
}
if (month==0) {
month = "1";
} else if (month==1) {
month = "2";
} else if (month==2) {
month = "3";
} else if (month==3) {
month = "4";
} else if (month==4) {
month = "5";
} else if (month==5) {
month = "6";
} else if (month==6) {
month = "7";
} else if (month==7) {
month = "8";
} else if (month==8) {
month = "9";
} else if (month==9) {
month = "10";
} else if (month==10) {
month = "11";
} else if (month==11) {
month = "12";
}
if (minutes
mydate = new Date();
seconds = mydate.getSeconds();
minutes = mydate.getMinutes();
hours = mydate.getHours();
day = mydate.getDay();
date = mydate.getDate();
month = mydate.getMonth();
year = mydate.getFullYear();
if (day==0) {
day = "星期日";
} else if (day==1) {
day = "星期一";
} else if (day==2) {
day = "星期二";
} else if (day==3) {
day = "星期三";
} else if (day==4) {
day = "星期四";
} else if (day==5) {
day = "星期五";
} else if (day==6) {
day = "星期六";
}
if (month==0) {
month = "1";
} else if (month==1) {
month = "2";
} else if (month==2) {
month = "3";
} else if (month==3) {
month = "4";
} else if (month==4) {
month = "5";
} else if (month==5) {
month = "6";
} else if (month==6) {
month = "7";
} else if (month==7) {
month = "8";
} else if (month==8) {
month = "9";
} else if (month==9) {
month = "10";
} else if (month==10) {
month = "11";
} else if (month==11) {
month = "12";
}
if (minutes
▼优质解答
答案和解析
朋友这个很简单你把他全放到一人函数里然后每一秒执行一次如下
function time(){
mydate = new Date();
seconds = mydate.getSeconds();
minutes = mydate.getMinutes();
hours = mydate.getHours();
day = mydate.getDay();
date = mydate.getDate();
month = mydate.getMonth();
year = mydate.getFullYear();
if (day==0) {
day = "星期日";
} else if (day==1) {
day = "星期一";
} else if (day==2) {
day = "星期二";
} else if (day==3) {
day = "星期三";
} else if (day==4) {
day = "星期四";
} else if (day==5) {
day = "星期五";
} else if (day==6) {
day = "星期六";
}
if (month==0) {
month = "1";
} else if (month==1) {
month = "2";
} else if (month==2) {
month = "3";
} else if (month==3) {
month = "4";
} else if (month==4) {
month = "5";
} else if (month==5) {
month = "6";
} else if (month==6) {
month = "7";
} else if (month==7) {
month = "8";
} else if (month==8) {
month = "9";
} else if (month==9) {
month = "10";
} else if (month==10) {
month = "11";
} else if (month==11) {
month = "12";
}
if (minutes
function time(){
mydate = new Date();
seconds = mydate.getSeconds();
minutes = mydate.getMinutes();
hours = mydate.getHours();
day = mydate.getDay();
date = mydate.getDate();
month = mydate.getMonth();
year = mydate.getFullYear();
if (day==0) {
day = "星期日";
} else if (day==1) {
day = "星期一";
} else if (day==2) {
day = "星期二";
} else if (day==3) {
day = "星期三";
} else if (day==4) {
day = "星期四";
} else if (day==5) {
day = "星期五";
} else if (day==6) {
day = "星期六";
}
if (month==0) {
month = "1";
} else if (month==1) {
month = "2";
} else if (month==2) {
month = "3";
} else if (month==3) {
month = "4";
} else if (month==4) {
month = "5";
} else if (month==5) {
month = "6";
} else if (month==6) {
month = "7";
} else if (month==7) {
month = "8";
} else if (month==8) {
month = "9";
} else if (month==9) {
month = "10";
} else if (month==10) {
month = "11";
} else if (month==11) {
month = "12";
}
if (minutes
看了 懂flash的大神请进啊!m...的网友还看了以下:
seconds什么意思除了第2的意思以外还有什么意思.. 2020-04-26 …
display-seconds是什么意思 2020-04-27 …
It will take four seconds four o'clock to strike 2020-05-16 …
连词成句(英语)1.longer,I,race,like,much,veay.2.ran,he,4 2020-05-17 …
英语翻译varmydate=newDate()varyear=mydate.getYear()if 2020-06-15 …
正则表达式y+Date.prototype.Format=function(fmt){//auth 2020-06-25 …
JAVA程序设计题:定义一个表示日期的MyDate类,要求如下:类有三个成员变量year,mont 2020-07-17 …
懂flash的大神请进啊!mydate=newDate();seconds=mydate.getS 2020-07-26 …
在Input文本框中如何显示javascript的值在中value是javascript中的值.ti 2020-10-29 …
dedecms模板标签问题{dede:arclisttitlelen='40'row='3'}[fi 2020-11-23 …