2016年9月11日

dom的element类型

摘要: 1)getElementById 后面的nodeName和tagName都一样 元素中的class还js中会变成className 元素中的属性会在js代码中被修改 本来可以通过对象。属性来访问数据的 后来又知道了另外的一种方法 变量.getAttribute() 变量.setAttribute() 阅读全文

posted @ 2016-09-11 23:17 Kooing 阅读(405) 评论(0) 推荐(0) 编辑

导航