//获取子节点长度function returnChildlength(element){ var child_length = 0; var obj = (typeof element == "object") ? element : document.getElementById(element); if(obj){ var l = obj.childNodes.length; for(var i = 0;i
本文共 256 字,大约阅读时间需要 1 分钟。
//获取子节点长度function returnChildlength(element){ var child_length = 0; var obj = (typeof element == "object") ? element : document.getElementById(element); if(obj){ var l = obj.childNodes.length; for(var i = 0;i
转载于:https://my.oschina.net/xiaxin/blog/118468