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

for(var key in obj) {
    if (!obj[key])return;
}

 

posted @ 2020-04-17 16:05  lilelile  阅读(1361)  评论(0编辑  收藏  举报