[{a:1,b:''},{a:'',b:''}]
let arr = [{a:1,b:''},{a:'',b:''}], isNull = false; arr.map(item => { let keys = Object.keys(item); // ["a", "b"] keys.map(k => { if (!item[k]) isNull = true }) }) consol.log(isNull); // 如果为true,则有空值
2.1m questions
2.1m answers
60 comments
57.0k users