//关联数组长度
function getObjLength(obj){
var count=0;
for(var name in obj){
if(typeof obj[name] == "object"){
count+=getObjLength(obj[name]);
}else{
count++;
}
}
return count;
}
js 关联数组长度计算
最新推荐文章于 2022-07-06 21:52:58 发布