js校验对象是否全部为空
function judgeIsNotBlank(obj) { var bool = true; var arr = Object.keys(obj); var count = 0; for(var key in obj){ if(!obj[key]) count++; } if(arr.length==count)bool=false; return bool; }
function judgeIsNotBlank(obj) { var bool = true; var arr = Object.keys(obj); var count = 0; for(var key in obj){ if(!obj[key]) count++; } if(arr.length==count)bool=false; return bool; }