本文共 751 字,大约阅读时间需要 2 分钟。
定时器function show(){ alert('a');}setInterval(show,1000); 函数,毫秒(间隔型、无限次执行)setTimeout(show,1000); (延时型、只执行一次)clearIntervalclearTimeout------------------------------------------------------------定时器的开启和关闭 ----------------------------------------------------------------------获取当前时间var oDate = new Date();alert(getHours());getMinutes();getSeconds();数码时钟 ::-------------------------------------------------------------------------------获取年月日var oDate = new Date();oDate.getFullYear();//年oDate.getMonth()+1;//月oDate.getDate();//哪一天oDate.getDay();//当前星期几---------------------------------------------------------------------------------延时提示框延时提示框 ---------------------------------------------------延时提示框之函数合并
转载地址:http://cjsgi.baihongyu.com/