标准的获取DOM节点的JS代码

使用标准函数获取DOS节点
document.getElementById
document.getElementsByName,

document.getElementsByTagName
使用标准方法操作节点的属性
getAttribute,setAttribute
使用标准方法生成和删除节点
createElement,appendChild,removeChild

博客分类: 
You voted 1. Total votes: 952

添加新评论