From e843e828a882991962e482d82c757ac7e42130e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B4=E6=96=87=E9=BE=99?= <2717752887@qq.com>
Date: Tue, 25 Oct 2022 23:07:45 +0000
Subject: [PATCH 1/4] =?UTF-8?q?2022-10.25=E7=AC=AC=E5=85=AD=E6=AC=A1?=
=?UTF-8?q?=E4=BD=9C=E4=B8=9A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 吴文龙 <2717752887@qq.com>
---
...\346\254\241\344\275\234\344\270\232.html" | 66 +++++++++++++++++++
1 file changed, 66 insertions(+)
create mode 100644 "17\345\220\264\346\226\207\351\276\231/\344\275\234\344\270\232/2022-10.25\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232.html"
diff --git "a/17\345\220\264\346\226\207\351\276\231/\344\275\234\344\270\232/2022-10.25\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232.html" "b/17\345\220\264\346\226\207\351\276\231/\344\275\234\344\270\232/2022-10.25\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232.html"
new file mode 100644
index 0000000..a10f2ef
--- /dev/null
+++ "b/17\345\220\264\346\226\207\351\276\231/\344\275\234\344\270\232/2022-10.25\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232.html"
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
+
\ No newline at end of file
--
Gitee
From 71bfb1a49d8a35d9dd614a32d5ea9d5bb38c58af Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B4=E6=96=87=E9=BE=99?= <2717752887@qq.com>
Date: Tue, 25 Oct 2022 23:08:22 +0000
Subject: [PATCH 2/4] =?UTF-8?q?2022-10.25=E7=AC=AC=E5=85=AD=E6=AC=A1?=
=?UTF-8?q?=E7=AC=94=E8=AE=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 吴文龙 <2717752887@qq.com>
---
...55\346\254\241\347\254\224\350\256\260.md" | 50 +++++++++++++++++++
1 file changed, 50 insertions(+)
create mode 100644 "17\345\220\264\346\226\207\351\276\231/\347\254\224\350\256\260/2022-10.25\347\254\254\345\205\255\346\254\241\347\254\224\350\256\260.md"
diff --git "a/17\345\220\264\346\226\207\351\276\231/\347\254\224\350\256\260/2022-10.25\347\254\254\345\205\255\346\254\241\347\254\224\350\256\260.md" "b/17\345\220\264\346\226\207\351\276\231/\347\254\224\350\256\260/2022-10.25\347\254\254\345\205\255\346\254\241\347\254\224\350\256\260.md"
new file mode 100644
index 0000000..4e14047
--- /dev/null
+++ "b/17\345\220\264\346\226\207\351\276\231/\347\254\224\350\256\260/2022-10.25\347\254\254\345\205\255\346\254\241\347\254\224\350\256\260.md"
@@ -0,0 +1,50 @@
+对象
+
+ 定义对象
+
+字面量
+
+ var obj = {
+ name:value;
+ 'String':value;
+ }
+
+构造函数
+
+ function GetName() {
+ this.name = values;
+ this.age = values;
+ }
+
+工厂模式(设计模式)
+
+ function GetValues(name,age) {
+ var that = { }
+ that.name = name
+ that.age = age
+ return that
+ }
+
+生成对象
+
+var obj = new obj();
+
+const nameArr = Object.**keys**(users)
+
+nameArr.forEach(**key** => users[**key**].isLoggedIn ? count++ : count)
+
+增删查
+
+查:obj.name
+
+增:obj.原来obj中没有的属性,相当于将该属性添加到对象obj中
+
+删:delete 一般删之前要对该属性进行判断
+
+对象解构
+
+let{name:personName, age:personAge} = obj(取别名)
+
+嵌套解构
+
+let { name: personName, skill: { sname: skillName } } = obj
\ No newline at end of file
--
Gitee
From 0c7a611aca59c1d0880d77a5d254930bf01a1e55 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B4=E6=96=87=E9=BE=99?= <2717752887@qq.com>
Date: Thu, 27 Oct 2022 03:30:56 +0000
Subject: [PATCH 3/4] =?UTF-8?q?2022-10.26=E7=AC=AC=E4=B8=83=E6=AC=A1?=
=?UTF-8?q?=E4=BD=9C=E4=B8=9A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 吴文龙 <2717752887@qq.com>
---
...\346\254\241\344\275\234\344\270\232.html" | 83 +++++++++++++++++++
1 file changed, 83 insertions(+)
create mode 100644 "17\345\220\264\346\226\207\351\276\231/\344\275\234\344\270\232/2022-10.26\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232.html"
diff --git "a/17\345\220\264\346\226\207\351\276\231/\344\275\234\344\270\232/2022-10.26\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232.html" "b/17\345\220\264\346\226\207\351\276\231/\344\275\234\344\270\232/2022-10.26\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232.html"
new file mode 100644
index 0000000..760d014
--- /dev/null
+++ "b/17\345\220\264\346\226\207\351\276\231/\344\275\234\344\270\232/2022-10.26\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232.html"
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
\ No newline at end of file
--
Gitee
From 3c1d13af9ec7729217fccf093172aab1430c04d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B4=E6=96=87=E9=BE=99?= <2717752887@qq.com>
Date: Thu, 27 Oct 2022 03:31:21 +0000
Subject: [PATCH 4/4] =?UTF-8?q?2022-10.26=E7=AC=AC=E4=B8=83=E6=AC=A1?=
=?UTF-8?q?=E7=AC=94=E8=AE=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 吴文龙 <2717752887@qq.com>
---
...03\346\254\241\347\254\224\350\256\260.md" | 84 +++++++++++++++++++
1 file changed, 84 insertions(+)
create mode 100644 "17\345\220\264\346\226\207\351\276\231/\347\254\224\350\256\260/2022-10.26\347\254\254\344\270\203\346\254\241\347\254\224\350\256\260.md"
diff --git "a/17\345\220\264\346\226\207\351\276\231/\347\254\224\350\256\260/2022-10.26\347\254\254\344\270\203\346\254\241\347\254\224\350\256\260.md" "b/17\345\220\264\346\226\207\351\276\231/\347\254\224\350\256\260/2022-10.26\347\254\254\344\270\203\346\254\241\347\254\224\350\256\260.md"
new file mode 100644
index 0000000..d9af47f
--- /dev/null
+++ "b/17\345\220\264\346\226\207\351\276\231/\347\254\224\350\256\260/2022-10.26\347\254\254\344\270\203\346\254\241\347\254\224\350\256\260.md"
@@ -0,0 +1,84 @@
+# 包装类
+
+构造函数的原理
+
+ function Test(){
+
+ **this{}**
+
+ **this = {**
+
+ **name: '张三'**
+
+ **age:16**
+
+ **}**
+
+ this.name = '张三'
+
+ this.age = 16
+
+ **return this**
+
+ }
+
+ var test = new Test();
+
+
+
+for ... of :遍历
+
+ for (e of Object.keys(obj)) {
+
+ console.log(e);
+
+ }
+
+
+
+**将键值对成对变成数组放入外层数组(二维数组)**
+
+ **const arr = Object.entries(obj)**
+
+ **console.log(arr);**
+
+ **or(e of Object.entries(obj)){**
+
+ **console.log(e);**
+
+ **}**
+
+
+
+ **obj本身是不可迭代的对象**
+
+ for(e of obj){
+
+ console.log(e);
+
+ }
+
+
+
+assign:浅拷贝(复制的是同一个地址,创建一个新的栈指向同一个堆),浅拷贝还具有合并对象的作用(将后面的对象向第一个对象合并,有相同属性的会进行替换)
+
+
+
+原始数据类型: number, boolean, string, null, undefined (symbol,bigint)
+
+包装类只有:number,boolean,string, **null,undefined是没有包装类的**
+
+包装类:自动转成对象
+
+var num = 5; **原始数据类型**
+
+ num.a = 7; **1. new Number(5).a = 7**
+
+ **2.delete new Number(5)**
+
+ console.log(num.a); **new Number(5).a undefined**
+
+
+
+
+
--
Gitee