[JavaScript] 判断是否为空对象 js 判断是否为空对象最高效的方法 function isEmpty(obj) { for (var key in obj) { return false } return true }