From 914eb9552eee8877d314f28b1041a3d2ebc4d414 Mon Sep 17 00:00:00 2001
From: lzlk <1930069369@qq.com>
Date: Tue, 25 Oct 2022 23:44:36 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E6=AC=A1=E4=BD=9C?=
=?UTF-8?q?=E4=B8=9A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../2022-10-24 \344\275\234\344\270\232.html" | 128 ++++++++++++++++++
...4\350\256\260 \345\257\271\350\261\241.md" | 29 ++++
2 files changed, 157 insertions(+)
create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-24 \344\275\234\344\270\232.html"
create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-10-24 \347\254\224\350\256\260 \345\257\271\350\261\241.md"
diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-24 \344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-24 \344\275\234\344\270\232.html"
new file mode 100644
index 0000000..a91b01d
--- /dev/null
+++ "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-24 \344\275\234\344\270\232.html"
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
\ No newline at end of file
diff --git "a/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-10-24 \347\254\224\350\256\260 \345\257\271\350\261\241.md" "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-10-24 \347\254\224\350\256\260 \345\257\271\350\261\241.md"
new file mode 100644
index 0000000..2049e94
--- /dev/null
+++ "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-10-24 \347\254\224\350\256\260 \345\257\271\350\261\241.md"
@@ -0,0 +1,29 @@
+对象也是一个变量,但对象可以包含多个值(多个变量),每个值以 **name:value** 对呈现。
+
+var car = {name:" ", model: , color:" "};
+
+
+
+获取属性的值:
+
+数组名.变量名()
+
+数组名.['变量名']
+
+
+
+对象解构:
+
+```
+//不使用解构
+let personName = person.name, personAge = person.age
+
+//使用解构:可以在一个类似对象字面量的结构中,声明多个变量。同时执行多个赋值操作
+let {name:personName, age:personAge} = person;
+```
+
+设定默认值:let {变量='值'}
+
+object.keys():
+
+会返回一个由一个给定对象的自身可枚举属性组成的数组,数组中属性名的排列顺序和正常循环遍历该对象时返回的顺序一致。
--
Gitee
From b0a3b9f20d413be7e404afdfe5a3a0d3827711a2 Mon Sep 17 00:00:00 2001
From: lzlk <1930069369@qq.com>
Date: Thu, 27 Oct 2022 11:57:13 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E6=AC=A1=E4=BD=9C?=
=?UTF-8?q?=E4=B8=9A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../2022-10-26 \344\275\234\344\270\232.html" | 77 +++++++++++++++++++
...73\347\273\237\345\207\275\346\225\260.md" | 28 +++++++
2 files changed, 105 insertions(+)
create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-26 \344\275\234\344\270\232.html"
create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-10-26\347\254\224\350\256\260 \347\263\273\347\273\237\345\207\275\346\225\260.md"
diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-26 \344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-26 \344\275\234\344\270\232.html"
new file mode 100644
index 0000000..518cdf3
--- /dev/null
+++ "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-26 \344\275\234\344\270\232.html"
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-10-26\347\254\224\350\256\260 \347\263\273\347\273\237\345\207\275\346\225\260.md" "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-10-26\347\254\224\350\256\260 \347\263\273\347\273\237\345\207\275\346\225\260.md"
new file mode 100644
index 0000000..639c70b
--- /dev/null
+++ "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-10-26\347\254\224\350\256\260 \347\263\273\347\273\237\345\207\275\346\225\260.md"
@@ -0,0 +1,28 @@
+for ... of :遍历:
+
+```
+ keys:变量名
+ for (e of Object.keys(obj)) {
+ console.log(e);
+ }
+ values:变量值
+ for (e of Object.values(obj)) {
+ console.log(e);
+ }
+ entries:变量名以及对应的值
+ for (e of Object.entries(obj)) {
+ console.log(e);
+ }
+```
+
+assign:浅拷贝()
+
+assign方法只会拷贝源对象,会调用数组,不仅仅是复制或定义新的属性。
+
+包装类:
+
+(number,boolean,string)
+
+null,undefined是没有包装类的
+
+字符串名.charCodeAt(i):查看字节码
\ No newline at end of file
--
Gitee