JavaScript获取和创建元素
摘要:1、JavaScript中获取元素 常用的获取document中元素的方法: 1) document.getElementById() =》通过元素ID获取文档中特定的元素,如获取 id = "button1" 的按钮 可以写成: var btn = document.getElementById(
阅读全文
posted @ 2016-11-12 14:18
posted @ 2016-11-12 14:18