mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
优化代码
This commit is contained in:
parent
3dd3d38a40
commit
b6336bf8bc
@ -37,3 +37,15 @@ export function isEmpty(_value) {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function isNull(_value) {
|
||||||
|
if (typeof _value == "undefined" || _value == null || _value == "") {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export function isNotNull(_value) {
|
||||||
|
return !isNull(_value);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user