From 8b489db68f32bdda57a31ae24647005202e77e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=AB=8B=E6=99=BA?= Date: Thu, 27 Oct 2022 04:28:17 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E5=85=AD?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "15\351\231\210\347\253\213\346\231\272/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/.keep" diff --git "a/15\351\231\210\347\253\213\346\231\272/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/.keep" "b/15\351\231\210\347\253\213\346\231\272/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 8eaa9a8cf13e7e62d8dff8cfbbccda55616c3d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=AB=8B=E6=99=BA?= Date: Thu, 27 Oct 2022 04:28:41 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E9=99=88=E7=AB=8B=E6=99=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈立智 --- .../a.html" | 87 +++++++++++++++++++ .../\345\214\205\350\243\205\347\261\273.md" | 21 +++++ 2 files changed, 108 insertions(+) create mode 100644 "15\351\231\210\347\253\213\346\231\272/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/a.html" create mode 100644 "15\351\231\210\347\253\213\346\231\272/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\345\214\205\350\243\205\347\261\273.md" diff --git "a/15\351\231\210\347\253\213\346\231\272/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/a.html" "b/15\351\231\210\347\253\213\346\231\272/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/a.html" new file mode 100644 index 0000000..9167706 --- /dev/null +++ "b/15\351\231\210\347\253\213\346\231\272/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/a.html" @@ -0,0 +1,87 @@ + + + + + + + Document + + + + + \ No newline at end of file diff --git "a/15\351\231\210\347\253\213\346\231\272/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\345\214\205\350\243\205\347\261\273.md" "b/15\351\231\210\347\253\213\346\231\272/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\345\214\205\350\243\205\347\261\273.md" new file mode 100644 index 0000000..1199dfc --- /dev/null +++ "b/15\351\231\210\347\253\213\346\231\272/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\345\214\205\350\243\205\347\261\273.md" @@ -0,0 +1,21 @@ +# 包装类 + +## 1.定义方法更新记录: + + function updateRecords(id, prop, value) //id :5439 props:属性 value:值 + +​ 要求: + + (1).如果传入的value是一个空值,表示将该属性删除 + + (2).传入的prop如果是tracks,则代表添加,其他是修改 + +2.assign:拷贝,浅拷贝(复制的是对象的地址),(手写一个对象的深拷贝)深拷贝(复制的的对象本身),assign:1.浅拷贝一个对象 2.合并对象(target,sources....) + +## 2.包装类 + +原始数据类型: number, boolean, string, null, undefined (symbol,bigint) + +包装类只有:number,boolean,string。 null,undefined是没有包装类的 + +包装类的概念:通常情况下基本数据类型的变量不是对象,为了满足万物皆对象的理念就需要对基本数据类型的变量进行打包封装处理变成对象,而负责将这些变量声明为成员变量进行对象化处理的相关类,叫做包装类。 \ No newline at end of file -- Gitee