JS.GetAllChild(elementdeepcondition)使用介绍
代码如下: window.GetAllChild = function (element, deep, condition) { if (!!!deep) { deep = 1; } if (!!!condition || condition == ”) { condition = ‘1==1’; } deep–; if (!!!element || !!!element.childNodes || element.childNodes.length <= 0) { return []; } var result = new Array(); for (var i = 0; i <
下载地址
用户评论