From 188f0237aa1b90c997968d200291c2430dd78ddd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com>
Date: Tue, 25 Oct 2022 16:34:57 +0000
Subject: [PATCH 1/9] =?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 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/.keep"
diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/.keep" "b/22 \346\235\250\345\207\214\347\277\224/\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 2be0832e77f57ee77b8d8d19cf979db91cfa0c52 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com>
Date: Tue, 25 Oct 2022 16:35:05 +0000
Subject: [PATCH 2/9] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=94=E8=AE=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../\347\254\224\350\256\260/.keep" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/.keep"
diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/.keep" "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/.keep"
new file mode 100644
index 0000000..e69de29
--
Gitee
From 79b465282c2e28ffd6052d6102ed72c996985bbb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com>
Date: Tue, 25 Oct 2022 16:35:16 +0000
Subject: [PATCH 3/9] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E4=BD=9C=E4=B8=9A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../\344\275\234\344\270\232/.keep" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/.keep"
diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/.keep" "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/.keep"
new file mode 100644
index 0000000..e69de29
--
Gitee
From 8b2d9528e4847508e7bff86ca99f6136815af7ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com>
Date: Tue, 25 Oct 2022 16:35:46 +0000
Subject: [PATCH 4/9] =?UTF-8?q?add=2022=20=E6=9D=A8=E5=87=8C=E7=BF=94/?=
=?UTF-8?q?=E7=AC=AC=E5=85=AD=E6=AC=A1=E4=BD=9C=E4=B8=9A/=E4=BD=9C?=
=?UTF-8?q?=E4=B8=9A.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 杨凌翔 <963304364@qq.com>
---
.../\344\275\234\344\270\232/test.html" | 68 +++++++++++++++++++
1 file changed, 68 insertions(+)
create mode 100644 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/test.html"
diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/test.html" "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/test.html"
new file mode 100644
index 0000000..083d6ff
--- /dev/null
+++ "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/test.html"
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
\ No newline at end of file
--
Gitee
From 41358876004a924c44dcfc36694f24356077b03a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com>
Date: Tue, 25 Oct 2022 16:38:00 +0000
Subject: [PATCH 5/9] =?UTF-8?q?add=2022=20=E6=9D=A8=E5=87=8C=E7=BF=94/?=
=?UTF-8?q?=E7=AC=AC=E5=85=AD=E6=AC=A1=E4=BD=9C=E4=B8=9A/=E7=AC=94?=
=?UTF-8?q?=E8=AE=B0.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 杨凌翔 <963304364@qq.com>
---
...71\350\261\241\350\247\243\346\236\204.md" | 45 +++++++++++++++++++
1 file changed, 45 insertions(+)
create mode 100644 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/2022-10-24-\345\257\271\350\261\241\350\247\243\346\236\204.md"
diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/2022-10-24-\345\257\271\350\261\241\350\247\243\346\236\204.md" "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/2022-10-24-\345\257\271\350\261\241\350\247\243\346\236\204.md"
new file mode 100644
index 0000000..2eac7ac
--- /dev/null
+++ "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\345\205\255\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/2022-10-24-\345\257\271\350\261\241\350\247\243\346\236\204.md"
@@ -0,0 +1,45 @@
+## 1.获取属性的值
+
+.
+
+[ ]
+
+相同点:获取属性的值
+
+不同点:
+
+1. [ ] 可以获取变量为字符串的内容,. 不可以
+
+ ```javascript
+ var str3 = {name:'tuttu',number:'23'}
+ var key = 'name'
+ console.log(str3[key]) tuttu
+ console.log(str3.key) undefined
+ ```
+
+2. [ ] 可以用纯数字作为属性名,.不可以
+
+ ```javascript
+ var str3 = {name:'tuttu',3:'23'}
+ var key = 'name'
+ console.log(str3[3]) 23
+ console.log(str3.3) Uncaught SyntaxError: missing ) after argument list
+ ```
+
+普通常量赋值的时候可以用 . 其他可以用[ ]
+
+## 2.对象解构
+
+```javascript
+const hero = {
+ name:'huhu',
+ age:15
+}
+const{name,age} = hero;
+name;
+ageg
+
+// 解构赋值不一定需要与对象的属性匹配。赋值的时候可以忽略某些属性,而如果引用的属性不存在,则为undefined。此时可以在解构的同时定义默认值
+
+let {name, job} = person //此时没有job属性
+let {nam, job='student'} //设定默认值
\ No newline at end of file
--
Gitee
From e2aa96c0cb5eaf2f7c4ad9019f8f2e56b7dec9d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com>
Date: Wed, 26 Oct 2022 03:25:27 +0000
Subject: [PATCH 6/9] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=83?=
=?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 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/.keep"
diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/.keep" "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/.keep"
new file mode 100644
index 0000000..e69de29
--
Gitee
From 0b7bd1e30cbf595a69229fe8e354374c570d06a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com>
Date: Wed, 26 Oct 2022 03:25:36 +0000
Subject: [PATCH 7/9] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E4=BD=9C=E4=B8=9A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../\344\275\234\344\270\232/.keep" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/.keep"
diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/.keep" "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/.keep"
new file mode 100644
index 0000000..e69de29
--
Gitee
From 8b93d0d5dc5edffb0b4c703f3a6b051e97db53ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com>
Date: Wed, 26 Oct 2022 03:25:45 +0000
Subject: [PATCH 8/9] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=94=E8=AE=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../\347\254\224\350\256\260/.keep" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/.keep"
diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/.keep" "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/.keep"
new file mode 100644
index 0000000..e69de29
--
Gitee
From c75fac52d09e2770b211aba50fb45cbc2a68800e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com>
Date: Wed, 26 Oct 2022 03:27:29 +0000
Subject: [PATCH 9/9] =?UTF-8?q?add=2022=20=E6=9D=A8=E5=87=8C=E7=BF=94/?=
=?UTF-8?q?=E7=AC=AC=E4=B8=83=E6=AC=A1=E4=BD=9C=E4=B8=9A/=E4=BD=9C?=
=?UTF-8?q?=E4=B8=9A/test.html.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 杨凌翔 <963304364@qq.com>
---
.../\344\275\234\344\270\232/test.html" | 42 +++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/test.html"
diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/test.html" "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/test.html"
new file mode 100644
index 0000000..f07338e
--- /dev/null
+++ "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/test.html"
@@ -0,0 +1,42 @@
+//要求输入一串低于10位的数字,输出对应的中文大写:
+//例: input: 10001-- > 一万零一 ; input: 10, 000, 000-- > 一千万
+
+
+ var strNumber = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖', '拾'];
+ var numberOfWeight = ['', '拾', '佰', '仟', '万', '拾', '佰', '仟', '亿'];
+ var num = prompt("请输入一串低于10位的数字");
+
+ chineseNumber(num);
+
+ function chineseNumber(num) {
+
+ var onum = num;
+ if (onum == 0) {
+ print(strNumber[num[0]]);
+ return;
+ }
+
+ while (num != '') {
+ if (num > 0) {
+ if (num[0] == 0) {
+ if (num.length <= 4)
+ print(strNumber[num[0]]);
+ } else {
+ print(strNumber[num[0]]);
+ }
+
+ if (num[0] > 0 || num.length > 4)
+ print(numberOfWeight[num.length - 1]);
+ }
+
+ num = num.substring(1);
+ while (num[0] == 0 && num[1] == 0) {
+ num = num.substring(1);
+ }
+ }
+ }
+
+
+ function print(s) {
+ document.write(s);
+ }
\ No newline at end of file
--
Gitee