判断js对象每个字段是否为空

for(var key in obj) {
    if (!obj[key])return;
}
原文地址:https://www.cnblogs.com/lilelile/p/12720581.html