/**
* 判断对象的值是不是全为空
*/
objectValueAllEmpty:(object)=>{
let isEmpty = true;
Object.keys(object).forEach(function(x) {
if(object[x] != null && object[x] != ""){
isEmpty = false;
}
});
if(isEmpty){//值全为空
return true;
}
return false;
}
参数object是表单form的对象