window.GetAllChild = function (elditionement, deep, con) {
if (!!!深) { 深= 1; }
if (!!!條件|| 條件== '') { 條件= '1==1'; }
深--;
if (!!!element || !!!element.childNodes || element.childNodes.length var 結果= new Array();
for ( var i = 0; i if (element.style && (element.style.visibility == '隱藏' || element.style.display = = '無')) {
繼續;
}
var child = element.childNodes[i];
if (eval(條件)) {
result.push(child);
}
}
if (deep > 0) {
結果= result.concat(GetAllChild(child, deep, condition));
}
}
回傳結果;
}