摘要: 一、获取节点属性getAttribute()通过这个方法可以得到某些元素的某些属性alert(demo.getAttribute("class")); 二、设置节点属性setAttribute("属性","值");div.setAttribute("class","demo"); 三、删除节点属性r 阅读全文
posted @ 2017-09-13 23:00 半指温柔乐 阅读(295) 评论(0) 推荐(0) 编辑