kindring 3 年之前
父节点
当前提交
e6c9eb8527
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      js/比对.js

+ 2 - 1
js/比对.js

@@ -3,7 +3,7 @@
  * @Autor: kindring
  * @Autor: kindring
  * @Date: 2021-09-30 10:36:44
  * @Date: 2021-09-30 10:36:44
  * @LastEditors: kindring
  * @LastEditors: kindring
- * @LastEditTime: 2021-09-30 14:34:37
+ * @LastEditTime: 2021-10-12 14:12:10
  * @LastDescript: 
  * @LastDescript: 
  */
  */
 
 
@@ -64,6 +64,7 @@ function deepClone(object, weakMap = new WeakMap()) {
         if (weakMap.get(object)) {
         if (weakMap.get(object)) {
             return weakMap.get(object)
             return weakMap.get(object)
         }
         }
+        console.log();
         weakMap.set(object, cloneTarget)
         weakMap.set(object, cloneTarget)
         for (const key in object) {
         for (const key in object) {
             cloneTarget[key] = deepClone(object[key], weakMap)
             cloneTarget[key] = deepClone(object[key], weakMap)