摘要: 内容来自百度搜索 //判断样式是否存在 function hasClass(ele, cls) { return ele.className.match(new RegExp("(\\s|^)" + cls + "(\\s|$)")); } //为指定的dom元素添加样式 function addC 阅读全文
posted @ 2017-11-09 18:47 LancelotSeven 阅读(2225) 评论(0) 推荐(0)