获取原色class值 child1.getAttribute("class");
设置元素class,所有浏览器均支持child1.className = "pagenumb";
js操作记录
原文:http://www.cnblogs.com/ives/p/6849613.html