1.代码
export const isNotNullORBlank = (...args
)=> {
for (var i
= 0; i
< args
.length
; i
++) {
var argument
= args
[i
];
if (argument
== null || argument
== '' || argument
== undefined
) {
return false;
}
}
return true;
}
2.用法
isNotNullORBlank(this.id
, this.name
, this.age
)
转载请注明原文地址:https://tech.qufami.com/read-23012.html