标签:io ar for cti on c size r as
Object.size = function(obj) {
var size = 0, key;
for (key in obj) {
if (obj.hasOwnProperty(key)) size++;
}
return size;
};
objname = {};
Object.size(objname);
标签:io ar for cti on c size r as
原文地址:http://www.cnblogs.com/jyb2014/p/3979612.html