瀏覽代碼

添加一些注释

xiezhiming 8 月之前
父節點
當前提交
0ee48ebfc6
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/js/qcScore.js

+ 7 - 1
src/js/qcScore.js

@@ -1209,8 +1209,14 @@ $(function () {
 
   /**验证首次病程录更新*/
   let validateFirstRecordUpdate = true
-  /**时间格式化*/
+
+  /**时间格式化
+   * @param {string} dateName 时间的名称 
+   * @param {string} dateStr 时间字符串
+   * @returns 格式化成功返回yyyy-MM-dd hh:mm:ss 格式的字符串 ,失败返回空串
+  */
   function dateFormat(dateName, dateStr) {
+    // 给不足两为的数添加0
     function fillZero(value) {
       return String(value).padStart(2, '0');
     }