From b6336bf8bc3ba11b97083bd8a4b1baa252957a76 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Tue, 19 Jan 2021 11:27:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/StringUtil.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/utils/StringUtil.js b/utils/StringUtil.js index 3c56670..68e222f 100644 --- a/utils/StringUtil.js +++ b/utils/StringUtil.js @@ -37,3 +37,15 @@ export function isEmpty(_value) { 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); +} \ No newline at end of file