码迷,mamicode.com
首页 > Web开发 > 详细

js操作记录

时间:2017-05-13 17:59:57      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:div   nbsp   name   get   page   操作记录   attribute   classname   class   

获取原色class值 
child1.getAttribute("class");
设置元素class,所有浏览器均支持
child1.className = "pagenumb";

 

js操作记录

标签:div   nbsp   name   get   page   操作记录   attribute   classname   class   

原文地址:http://www.cnblogs.com/ives/p/6849613.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!