js getElementByClass
1.js getElementByClassfunction getElementsByClass(node, searchClass, tag) { var classElements = new Array(); var els = node.getElementsByTagName(tag); var elsLen = els.length; var pattern = new RegExp("//b" + searchClass + "//b"
原创
2011-03-24 12:32:00 ·
5910 阅读 ·
1 评论