检查对象是否为空的最快方法是什么?
有没有比这更快更好的方法:
function count_obj(obj){ var i = 0; for(var key in obj){ ++i; } return i; }
javascript
javascript ×1