js获取class name
2021-02-14 06:18
标签:ntb result var ++ style turn function ret == getElementsByClassName() IE9以下不兼容 js获取class name 标签:ntb result var ++ style turn function ret == 原文地址:https://www.cnblogs.com/sunnywindycloudy/p/12995714.htmlfunction getByClass(oParent,sClass){
var aEle=oParent.getElementsByTagName(‘*‘);
var aResult=[];
for(var i=0;i