摘要:
function getElementsByClassName(parentElement,tagName,className){ var elements=parentElement.getElementsByTagName(tagName); var result=[]; for(var i=0;i<elements.length;i++) if((" "+elements[i].className+" ").indexOf(" "+className+" ")!=-1) result.push(elem 阅读全文