From 93db5b42a725ded6bd1cc41981804bc8649c03ba Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期四, 14 三月 2024 15:30:13 +0800
Subject: [PATCH] func vaildate添加说明注释

---
 Source/UBCS-WEB/src/util/func.js     |    2 ++
 Source/UBCS-WEB/src/util/validate.js |    5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Source/UBCS-WEB/src/util/func.js b/Source/UBCS-WEB/src/util/func.js
index 9d6d017..7919dfd 100644
--- a/Source/UBCS-WEB/src/util/func.js
+++ b/Source/UBCS-WEB/src/util/func.js
@@ -6,6 +6,7 @@
    * 涓嶄负绌�
    * @param val
    * @returns {boolean}
+   * 涓嶈兘鍒ゆ柇鏁扮粍鍜屽璞� 濡傚垽鏂�"null"銆�"undefined"浼氳繑鍥炰笉涓虹┖
    */
   static notEmpty(val) {
     return !this.isEmpty(val);
@@ -24,6 +25,7 @@
    * 涓虹┖
    * @param val
    * @returns {boolean}
+   * 涓嶈兘鍒ゆ柇鏁扮粍鍜屽璞� 濡傚垽鏂�"null"銆�"undefined"浼氳繑鍥炰笉涓虹┖
    */
   static isEmpty(val) {
     if (
diff --git a/Source/UBCS-WEB/src/util/validate.js b/Source/UBCS-WEB/src/util/validate.js
index a774710..fb407d8 100644
--- a/Source/UBCS-WEB/src/util/validate.js
+++ b/Source/UBCS-WEB/src/util/validate.js
@@ -179,7 +179,7 @@
     let result = true;
     let msg = '';
     var isPhone = /^0\d{2,3}-?\d{7,8}$/;
-    //澧炲姞134 鍑忓皯|1349[0-9]{7}锛屽鍔�181,澧炲姞145锛屽鍔�17[678]  
+    //澧炲姞134 鍑忓皯|1349[0-9]{7}锛屽鍔�181,澧炲姞145锛屽鍔�17[678]
     if (!validatenull(phone)) {
         if (phone.length == 11) {
             if (isPhone.test(phone)) {
@@ -233,6 +233,7 @@
 }
 /**
  * 鍒ゆ柇鏄惁涓虹┖
+ * 鍙互鍒ゆ柇鏁扮粍鍜屽璞� 濡傚垽鏂�"null"銆�"undefined"涔熶細杩斿洖鏄┖
  */
 export function validatenull(val) {
     if (typeof val == 'boolean') {
@@ -250,4 +251,4 @@
         return false;
     }
     return false;
-}
\ No newline at end of file
+}

--
Gitblit v1.9.3