摘要: 定时器:id=setInterval(fun,30); 清除定时器:clearInterval(id);延时:id=setTimeOut(fun,30); 清除延时:clearTimeOut(id);str.toCharAt(i);获取字符串str第i个位置上的字符;兼容ie和高级浏览器;例子:简易时钟;function toDou(n){ if(n<10) { return '0'+n; } else { return ''+n; }}window.onload=function (){ var aImg=document... 阅读全文
posted @ 2013-06-17 15:28 猫多多 阅读(205) 评论(0) 推荐(0) 编辑