JavaScript Object Length 구하기
getObjLength = function(obj) {
    var size = 0, key = null;
    for (key in obj) {
        if (obj.hasOwnProperty(key)) size++;
    }
    return size;

};



출처 :
http://stackoverflow.com/questions/5223/length-of-javascript-object-ie-associative-array


http://hangaebal.blogspot.kr/2014/06/javascript-object-length.html

+ Recent posts