//获取元素子节点
function getChild(parent) {
var childs = parent.childNodes,
result = [];
for (var i = 0; cl = childs.length, i < cl; i++) {
if(childs[i].nodeType == 1) {
result.push(childs[i])
}
};
return result;
};
时间: 2024-10-03 21:34:38