2016年9月22日

document 对象

摘要: 找元素 根据ID找 alert(document.getElementById("b")); 根据class找var attr = document.getElementsByClassName("aa");alert(attr[2]); 根据name找alert(document.getEleme 阅读全文

posted @ 2016-09-22 17:55 奔跑的葛根 阅读(140) 评论(0) 推荐(0)

DOM:文档对象模型 --树模型

摘要: 间隔和延迟: window.setInterval("要执行的代码",间隔的毫秒数) window.clearInterval(间隔的id); 循环一次之后用来清除隔几秒执行的代码 window.setTimeout("要执行的代码",延迟的毫秒数) window.clearTimeout(延迟的i 阅读全文

posted @ 2016-09-22 17:17 奔跑的葛根 阅读(306) 评论(0) 推荐(0)

导航