摘要:
1,Math.floor, 求一个浮点数的地板,就是求一个最接近它的整数,它的值小于或等于这个浮点数 document.write(Math.floor(0.6) =0 document.write(Math.floor(1.40) =1在倒计时中time为剩余时间(单位:秒) function r 阅读全文
摘要:
查询定时器有两种: 1,一种是执行一次setTimeout(function(){},Time) 在执行一次其中的事件,然后延迟一段事件,在执行其他操作 2,一种是执行一次setInterval(function(){},Time) 每隔Time这段时间,执行一个事件,不断重复 清除事件: func 阅读全文