From 8bf3b26cdcff38a6d9172a362d3dc6feff2e2e5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:33:34 +0000 Subject: [PATCH 01/30] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2020241024=20=E5=88=9D?= =?UTF-8?q?=E8=AF=86JS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20241024 \345\210\235\350\257\206JS/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/.keep" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/.keep" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f1b7ec12e5014ca22982ea44e38c79e8e25db2ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:35:28 +0000 Subject: [PATCH 02/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/00.?= =?UTF-8?q?html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20241024 \345\210\235\350\257\206JS/00.html" | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/00.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/00.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/00.html" deleted file mode 100644 index cad7d8e..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/00.html" +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - Document - - - - - - - - \ No newline at end of file -- Gitee From 246e327143212b20131c70a7e389ce60a206f508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:35:33 +0000 Subject: [PATCH 03/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/01-?= =?UTF-8?q?=E4=BD=93=E9=AA=8Cjs.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../01-\344\275\223\351\252\214js.html" | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/01-\344\275\223\351\252\214js.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/01-\344\275\223\351\252\214js.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/01-\344\275\223\351\252\214js.html" deleted file mode 100644 index bd20047..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/01-\344\275\223\351\252\214js.html" +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - 体验JS - - - - - - - - - - - \ No newline at end of file -- Gitee From f405b6ef3ad49b7f82d1a49f21fd2cc91c8da29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:35:40 +0000 Subject: [PATCH 04/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/02-?= =?UTF-8?q?js=E4=B9=A6=E5=86=99=E4=BD=8D=E7=BD=AE-=E5=86=85=E9=83=A8.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\347\275\256-\345\206\205\351\203\250.html" | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/02-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\206\205\351\203\250.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/02-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\206\205\351\203\250.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/02-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\206\205\351\203\250.html" deleted file mode 100644 index 339498a..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/02-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\206\205\351\203\250.html" +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - Document - - - - - - - - \ No newline at end of file -- Gitee From 1e3e3f6db1b9d944694ee7485d40638c27d3edc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:36:04 +0000 Subject: [PATCH 05/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/03-?= =?UTF-8?q?js=E4=B9=A6=E5=86=99=E4=BD=8D=E7=BD=AE-=E5=A4=96=E9=83=A8.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...347\275\256-\345\244\226\351\203\250.html" | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/03-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\244\226\351\203\250.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/03-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\244\226\351\203\250.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/03-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\244\226\351\203\250.html" deleted file mode 100644 index c46c61a..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/03-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\244\226\351\203\250.html" +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - Document - - - - - - - 测试 - - - - -- Gitee From 9eaee23c8629bc188c06bd2e329ed9f3b27f67d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:36:10 +0000 Subject: [PATCH 06/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/04-?= =?UTF-8?q?js=E4=B9=A6=E5=86=99=E4=BD=8D=E7=BD=AE-=E8=A1=8C=E5=86=85.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...347\275\256-\350\241\214\345\206\205.html" | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/04-js\344\271\246\345\206\231\344\275\215\347\275\256-\350\241\214\345\206\205.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/04-js\344\271\246\345\206\231\344\275\215\347\275\256-\350\241\214\345\206\205.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/04-js\344\271\246\345\206\231\344\275\215\347\275\256-\350\241\214\345\206\205.html" deleted file mode 100644 index daf824c..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/04-js\344\271\246\345\206\231\344\275\215\347\275\256-\350\241\214\345\206\205.html" +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - Document - - - - - - - 测试 - - - - - \ No newline at end of file -- Gitee From 0fa5a91c69c35f88864cac017064bef77fb40d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:36:19 +0000 Subject: [PATCH 07/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/05-?= =?UTF-8?q?=E7=BB=93=E6=9D=9F=E7=AC=A6=E4=B8=8E=E6=B3=A8=E9=87=8A.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\344\270\216\346\263\250\351\207\212.html" | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/05-\347\273\223\346\235\237\347\254\246\344\270\216\346\263\250\351\207\212.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/05-\347\273\223\346\235\237\347\254\246\344\270\216\346\263\250\351\207\212.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/05-\347\273\223\346\235\237\347\254\246\344\270\216\346\263\250\351\207\212.html" deleted file mode 100644 index b073ca8..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/05-\347\273\223\346\235\237\347\254\246\344\270\216\346\263\250\351\207\212.html" +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - Document - - - - - - - - - - - - \ No newline at end of file -- Gitee From 451d44c7d64ceeab35f9e51294d348025b1bc636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:36:24 +0000 Subject: [PATCH 08/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/06-?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E5=92=8C=E8=BE=93=E5=87=BA=E8=AF=AD=E6=B3=95?= =?UTF-8?q?.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\345\207\272\350\257\255\346\263\225.html" | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/06-\350\276\223\345\205\245\345\222\214\350\276\223\345\207\272\350\257\255\346\263\225.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/06-\350\276\223\345\205\245\345\222\214\350\276\223\345\207\272\350\257\255\346\263\225.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/06-\350\276\223\345\205\245\345\222\214\350\276\223\345\207\272\350\257\255\346\263\225.html" deleted file mode 100644 index a6f446d..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/06-\350\276\223\345\205\245\345\222\214\350\276\223\345\207\272\350\257\255\346\263\225.html" +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - Document - - - - - - - - \ No newline at end of file -- Gitee From 9ee8e3856cbd24833d02d5a1786edb94808749de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:36:30 +0000 Subject: [PATCH 09/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/07-?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E7=9A=84=E4=BD=BF=E7=94=A8=E4=B8=8E=E6=9B=B4?= =?UTF-8?q?=E6=96=B0.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\344\270\216\346\233\264\346\226\260.html" | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/07-\345\217\230\351\207\217\347\232\204\344\275\277\347\224\250\344\270\216\346\233\264\346\226\260.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/07-\345\217\230\351\207\217\347\232\204\344\275\277\347\224\250\344\270\216\346\233\264\346\226\260.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/07-\345\217\230\351\207\217\347\232\204\344\275\277\347\224\250\344\270\216\346\233\264\346\226\260.html" deleted file mode 100644 index 7b55b60..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/07-\345\217\230\351\207\217\347\232\204\344\275\277\347\224\250\344\270\216\346\233\264\346\226\260.html" +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From bc1672d8a53b929ecb67272d1e6db05b00e62836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:36:42 +0000 Subject: [PATCH 10/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/08-?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E7=94=A8=E6=88=B7=E5=90=8D=E6=A1=88=E4=BE=8B?= =?UTF-8?q?.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\345\220\215\346\241\210\344\276\213.html" | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/08-\350\276\223\345\205\245\347\224\250\346\210\267\345\220\215\346\241\210\344\276\213.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/08-\350\276\223\345\205\245\347\224\250\346\210\267\345\220\215\346\241\210\344\276\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/08-\350\276\223\345\205\245\347\224\250\346\210\267\345\220\215\346\241\210\344\276\213.html" deleted file mode 100644 index cfb9711..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/08-\350\276\223\345\205\245\347\224\250\346\210\267\345\220\215\346\241\210\344\276\213.html" +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From b669a33a40040ff706c4a9f2bb4ab638521c5de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:37:04 +0000 Subject: [PATCH 11/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/09-?= =?UTF-8?q?=E4=BA=A4=E6=8D=A22=E4=B8=AA=E5=8F=98=E9=87=8F.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\344\270\252\345\217\230\351\207\217.html" | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/09-\344\272\244\346\215\2422\344\270\252\345\217\230\351\207\217.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/09-\344\272\244\346\215\2422\344\270\252\345\217\230\351\207\217.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/09-\344\272\244\346\215\2422\344\270\252\345\217\230\351\207\217.html" deleted file mode 100644 index e19ef6e..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/09-\344\272\244\346\215\2422\344\270\252\345\217\230\351\207\217.html" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From 0653d9a75375769f19db02c9ce580c935d434353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:37:08 +0000 Subject: [PATCH 12/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/10-?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E7=9A=84=E5=91=BD=E5=90=8D=E8=A7=84=E8=8C=83?= =?UTF-8?q?.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\345\220\215\350\247\204\350\214\203.html" | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/10-\345\217\230\351\207\217\347\232\204\345\221\275\345\220\215\350\247\204\350\214\203.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/10-\345\217\230\351\207\217\347\232\204\345\221\275\345\220\215\350\247\204\350\214\203.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/10-\345\217\230\351\207\217\347\232\204\345\221\275\345\220\215\350\247\204\350\214\203.html" deleted file mode 100644 index 1e37ac4..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/10-\345\217\230\351\207\217\347\232\204\345\221\275\345\220\215\350\247\204\350\214\203.html" +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From 13059a8c7b2801745786a47314e089b78b7c7988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:37:13 +0000 Subject: [PATCH 13/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/11-?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E5=A7=93=E5=90=8D=E5=B9=B4=E9=BE=84=E6=A1=88?= =?UTF-8?q?=E4=BE=8B.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\351\276\204\346\241\210\344\276\213.html" | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/11-\350\276\223\345\205\245\345\247\223\345\220\215\345\271\264\351\276\204\346\241\210\344\276\213.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/11-\350\276\223\345\205\245\345\247\223\345\220\215\345\271\264\351\276\204\346\241\210\344\276\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/11-\350\276\223\345\205\245\345\247\223\345\220\215\345\271\264\351\276\204\346\241\210\344\276\213.html" deleted file mode 100644 index 1163ff7..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/11-\350\276\223\345\205\245\345\247\223\345\220\215\345\271\264\351\276\204\346\241\210\344\276\213.html" +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From 2fea7ea2187c1b3d17bec879a796335c202e9fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:37:18 +0000 Subject: [PATCH 14/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/12-?= =?UTF-8?q?let=E5=92=8Cvar=E7=9A=84=E5=8C=BA=E5=88=AB.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\347\232\204\345\214\272\345\210\253.html" | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/12-let\345\222\214var\347\232\204\345\214\272\345\210\253.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/12-let\345\222\214var\347\232\204\345\214\272\345\210\253.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/12-let\345\222\214var\347\232\204\345\214\272\345\210\253.html" deleted file mode 100644 index 2ed8213..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/12-let\345\222\214var\347\232\204\345\214\272\345\210\253.html" +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From ac6a9df69a024dc66102f26fb61e22e5fff2c7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:37:23 +0000 Subject: [PATCH 15/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/13-?= =?UTF-8?q?=E4=BD=93=E9=AA=8C=E6=95=B0=E7=BB=84.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\351\252\214\346\225\260\347\273\204.html" | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/13-\344\275\223\351\252\214\346\225\260\347\273\204.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/13-\344\275\223\351\252\214\346\225\260\347\273\204.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/13-\344\275\223\351\252\214\346\225\260\347\273\204.html" deleted file mode 100644 index 63ca149..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/13-\344\275\223\351\252\214\346\225\260\347\273\204.html" +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From c9f276ee70bc66df29543d358bfaefb6e28cb843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:37:28 +0000 Subject: [PATCH 16/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/14-?= =?UTF-8?q?=E5=B8=B8=E9=87=8F.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../14-\345\270\270\351\207\217.html" | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/14-\345\270\270\351\207\217.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/14-\345\270\270\351\207\217.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/14-\345\270\270\351\207\217.html" deleted file mode 100644 index 172841d..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/14-\345\270\270\351\207\217.html" +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From 896633b75aea9545dd902c73c85b92218fa67628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:37:34 +0000 Subject: [PATCH 17/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/15-?= =?UTF-8?q?=E6=95=B0=E5=80=BC=E7=B1=BB=E5=9E=8B.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\345\200\274\347\261\273\345\236\213.html" | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/15-\346\225\260\345\200\274\347\261\273\345\236\213.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/15-\346\225\260\345\200\274\347\261\273\345\236\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/15-\346\225\260\345\200\274\347\261\273\345\236\213.html" deleted file mode 100644 index 1d9dc02..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/15-\346\225\260\345\200\274\347\261\273\345\236\213.html" +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From b7643f9907421b35285bc03f418256cdcb433be9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:37:39 +0000 Subject: [PATCH 18/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/16-?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E5=9C=86=E7=9A=84=E9=9D=A2=E7=A7=AF.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\347\232\204\351\235\242\347\247\257.html" | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/16-\350\256\241\347\256\227\345\234\206\347\232\204\351\235\242\347\247\257.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/16-\350\256\241\347\256\227\345\234\206\347\232\204\351\235\242\347\247\257.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/16-\350\256\241\347\256\227\345\234\206\347\232\204\351\235\242\347\247\257.html" deleted file mode 100644 index b851ba3..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/16-\350\256\241\347\256\227\345\234\206\347\232\204\351\235\242\347\247\257.html" +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From 25f5764492399d62fb62d2f00ff66ee1879ba8bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:37:46 +0000 Subject: [PATCH 19/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/17-?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E7=B1=BB=E5=9E=8B.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\344\270\262\347\261\273\345\236\213.html" | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/17-\345\255\227\347\254\246\344\270\262\347\261\273\345\236\213.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/17-\345\255\227\347\254\246\344\270\262\347\261\273\345\236\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/17-\345\255\227\347\254\246\344\270\262\347\261\273\345\236\213.html" deleted file mode 100644 index 5081ae2..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/17-\345\255\227\347\254\246\344\270\262\347\261\273\345\236\213.html" +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From bb50ce61d814e2ac5606c09cbfde998ec856ba4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:37:52 +0000 Subject: [PATCH 20/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/18-?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E5=AD=97=E7=AC=A6=E4=B8=B2.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\345\255\227\347\254\246\344\270\262.html" | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/18-\346\250\241\346\235\277\345\255\227\347\254\246\344\270\262.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/18-\346\250\241\346\235\277\345\255\227\347\254\246\344\270\262.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/18-\346\250\241\346\235\277\345\255\227\347\254\246\344\270\262.html" deleted file mode 100644 index f0d7241..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/18-\346\250\241\346\235\277\345\255\227\347\254\246\344\270\262.html" +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From 1a0e85f1a9e5e22967d4281c1b2dd0469a11ffc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:37:57 +0000 Subject: [PATCH 21/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/19-?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E4=B8=89=E7=A7=8D=E7=B1=BB=E5=9E=8B.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\347\247\215\347\261\273\345\236\213.html" | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/19-\345\205\266\344\273\226\344\270\211\347\247\215\347\261\273\345\236\213.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/19-\345\205\266\344\273\226\344\270\211\347\247\215\347\261\273\345\236\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/19-\345\205\266\344\273\226\344\270\211\347\247\215\347\261\273\345\236\213.html" deleted file mode 100644 index 247d1a8..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/19-\345\205\266\344\273\226\344\270\211\347\247\215\347\261\273\345\236\213.html" +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From 16ab203ac36b794b576cac09755929f74f11aaee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:38:02 +0000 Subject: [PATCH 22/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/20-?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\346\215\256\347\261\273\345\236\213.html" | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20-\346\243\200\346\265\213\346\225\260\346\215\256\347\261\273\345\236\213.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20-\346\243\200\346\265\213\346\225\260\346\215\256\347\261\273\345\236\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20-\346\243\200\346\265\213\346\225\260\346\215\256\347\261\273\345\236\213.html" deleted file mode 100644 index 6fe7b78..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20-\346\243\200\346\265\213\346\225\260\346\215\256\347\261\273\345\236\213.html" +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From 3d6f3bb43d13eb513cb8950620f093f95f821b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:38:07 +0000 Subject: [PATCH 23/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/202?= =?UTF-8?q?41024=20=E5=88=9D=E8=AF=86JS.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20241024 \345\210\235\350\257\206JS.md" | 553 ------------------ 1 file changed, 553 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS.md" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS.md" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS.md" deleted file mode 100644 index 71e65d4..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS.md" +++ /dev/null @@ -1,553 +0,0 @@ -# 第一章,与君初相见 - -## 第一节 - -### JavaScript 简介 - -1. JavaScript 是什么: - JavaScript 是一种运行在浏览器的脚本编程语言。它不需要编译,可直接在浏览器上运行。 - -2. JavaScript 由什么组成: - ECMAScript (基础语法)和 Web APIs (DOM、BOM) - -### JavaScript 书写位置 - - - -JavaScript 程序不能独立运行,它需要被嵌入 HTML 中,然后浏览器才能执行 JavaScript 代码。通过 `script` 标签将 JavaScript 代码引入到 HTML 中,有三种方式: - -#### 1.内部方式 - -通过 `script` 标签包裹 JavaScript 代码 - -```html - - - - - JavaScript 基础 - 内部引入方式 - - - - - - -``` - -#### 2.外部方式 - -一般将 JavaScript 代码写在独立的以 .js 结尾的文件中,然后通过 `script` 标签的 `src` 属性引入 - -```javascript -// demo.js -document.write('前端技术!') -``` - -```html - - - - - JavaScript 基础 - 外部引入方式 - - - - - - -``` - -如果 script 标签使用 src 属性引入了某 .js 文件,那么 标签的代码会被忽略!!!如下代码所示: - -```html - - - - - JavaScript 基础 - 外部引入方式 - - - - - - -``` - -#### 3.行内方式 - -在HTML文档中可以在``标签、``标签中使用JavaScript脚本作为它们的属性值。 - -```html - - - - - JavaScript 基础 - 行内引入方式 - - - - 测试 - - - -``` - -### 注释和结束符 - -通过注释可以屏蔽代码被执行或者添加备注信息,JavaScript 支持两种形式注释语法: - -#### 单行注释 - -使用 `// ` 注释单行代码 - -```html - - - - - JavaScript 基础 - 注释 - - - - - - -``` - -#### 多行注释 - -使用 `/* */` 注释多行代码 - -```html - - - - - JavaScript 基础 - 注释 - - - - - - -``` - -**注:编辑器中单行注释的快捷键为 `ctrl + /`、多行注释快捷键为`alt + shift + a`** - -### 结束符 - -在 JavaScript 中 `;` 代表一段代码的结束,多数情况下可以省略 `;` 使用回车(enter)替代。 - -```html - - - - - JavaScript 基础 - 结束符 - - - - - - -``` - -> 对于初学者,建议以;号来结束代码; - -### 文档输出内容 - -1. 向 `body` 内输出内容 - - ```js - // 输出一段文字内容 - document.write("我是 JS 输出的内容"); - - // 输出一个一级标签 - document.write("

我是一个一级标签

"); - ``` - -2. 网页弹出警示框 - - ```js - alert("网页弹窗"); - ``` - -3. 向控制台输出内容,常用于调试 - - ```js - console.log("控制台输出内容"); - ``` - -### 输入语法 - -显示对话框,对话框内包含一段文字信息,用来提示用户输入内容 - -```js -prompt("请输入一段内容"); -``` - -### 代码执行顺序 - -1. 按照 HTML 文档流顺序执行 JavaScript 代码 -2. `alert()` 和 `prompt()` 会跳过页面渲染先被执行 - -定义:计算机用于**存储数据**的**容器**,可以让计算机有记忆。_(注意:变量不是数据本身,它们仅仅是一个用于存储数值的容器)_ - -### 变量的基本使用 - -#### 1.声明变量 - -语法: - -```js -let 变量名; -let 变量名 = 值, - 变量名 = 值; -``` - -1. 声明变量有两部分构成:声明关键字、变量名 - -2. `let` 即关键字,所谓关键字是系统提供的专门声明变量的词语 - - ```js - let age; - let money; - let text; - - let num1 = 20, - num2 = 30; - ``` - -#### 2.变量赋值 - -语法: - -```js -// 声明变量 -let age; - -// 进行赋值 -age = 18; - -// 声明同时并赋值(变量的初始化) -let num = 20; -``` - -#### 3.更新变量 - -语法: - -```js -// 变量初始化 -let age = 18; - -// 更新变量 -age = 19; -``` - -### 变量的其他初始化(不推荐使用) - -```js -let name = prompt("请输入姓名"); -``` - -### 变量的本质 - -1. 内存:计算机中存储数据的地方,相当于一个空间 -2. 变量:程序在内存中申请的一块用于存放数据的小空间 - -### 变量的命名规则与规范 - -#### 规则 - -1. JavaScript 内部已占用于单词(关键字或保留字)不允许使用 -2. 只能由下划线 `_` 、字母、数字、 `$` 组成,且不可以以数字开头 -3. 字母严格**区分大小写**,如 Age 和 age 是不同的变量 - -#### 规范 - -1. 尽量保证变量具有一定的语义,见字知义 - -2. 遵守小驼峰命名法:即第一个单词首字母小写,后面每个单词首字母大写 - 例: `userName` `userId` `userNameOld` - -### 关键字 - -JavaScript 使用专门的关键字 `let` 和 `var` 来声明(定义)变量,在使用时需要注意一些细节: - -以下是使用 `let` 时的注意事项: - -1. 允许声明和赋值同时进行 -2. 不允许重复声明 -3. 允许同时声明多个变量并赋值 -4. JavaScript 中内置的一些关键字不能被当做变量名 - -以下是使用 `var` 时的注意事项: - -2. 允许声明和赋值同时进行 -3. 允许重复声明 -4. 允许同时声明多个变量并赋值 - -大部分情况使用 `let` 和 `var` 区别不大,但是 `let` 相较 `var` 更严谨,因此推荐使用 `let`,后期会更进一步介绍二者间的区别。 - - - -## 常量 - -概念:使用 const 声明的变量称为“常量”。 - -使用场景:当某个变量永远不会改变的时候,就可以使用 const 来声明,而不是let。 - -命名规范:和变量一致 - -```javascript -const PI = 3.14 -``` - -> 注意: 常量不允许重新赋值,声明的时候必须赋值(初始化) - -## 数据类型 - -> 计算机世界中的万事万物都是数据。 - -计算机程序可以处理大量的数据,为了方便数据的管理,将数据分成了不同的类型: - -JavaScript的数据类型有数值,字符串,布尔, - -注:通过 typeof 关键字检测数据类型 - -```html - - - - - JavaScript 基础 - 数据类型 - - - - - - -``` - -### 数值类型 number - -即我们数学中学习到的数字,可以是整数、小数、正数、负数 - -```html - - - - - JavaScript 基础 - 数据类型 - - - - - - -``` - -JavaScript 中的数值类型与数学中的数字是一样的,分为正数、负数、小数等。 - -### 字符串类型 string - -通过单引号( `''`) 、双引号( `""`)或反引号`包裹的数据都叫字符串,单引号和双引号没有本质上的区别,推荐使用单引号。 - -> `反引号标记的字符串,叫模板字符串 - -注意事项: - -1. 无论单引号或是双引号必须成对使用 -2. 单引号/双引号可以互相嵌套,但是不以自已嵌套自已 -3. 必要时可以使用转义符 `\`,输出单引号或双引号 - -```html - - - - - JavaScript 基础 - 数据类型 - - - - - - -``` - -### 布尔类型 - -表示肯定或否定时在计算机中对应的是布尔类型数据,它有两个固定的值 `true` 和 `false`,表示肯定的数据用 `true`,表示否定的数据用 `false`。 - -```html - - - - - JavaScript 基础 - 数据类型 - - - - - - -``` - -### undefined - -未定义是比较特殊的类型,只有一个值 undefined,只声明变量,不赋值的情况下,变量的默认值为 undefined,一般很少【直接】为某个变量赋值为 undefined。 - -```html - - - - - JavaScript 基础 - 数据类型 - - - - - - -``` - -**注:JavaScript 中变量的值决定了变量的数据类型。** - -## 类型转换 - -> 理解弱类型语言的特征,掌握显式类型转换的方法 - -在 JavaScript 中数据被分成了不同的类型,如数值、字符串、布尔值、undefined,在实际编程的过程中,不同数据类型之间存在着转换的关系。 - -### 隐式转换 - -某些运算符被执行时,系统内部自动将数据类型进行转换,这种转换称为隐式转换。 - -```html - - - - - JavaScript 基础 - 隐式转换 - - - - - -``` - -注:数据类型的隐式转换是 JavaScript 的特征,后续学习中还会遇到,目前先需要理解什么是隐式转换。 - -**模板字符串用`s{}`实现变量与字符串的拼接 - -### 显式转换 - -编写程序时过度依靠系统内部的隐式转换是不严禁的,因为隐式转换规律并不清晰,大多是靠经验总结的规律。为了避免因隐式转换带来的问题,通常根逻辑需要对数据进行显示转换。 - -#### Number - -通过 `Number` 显示转换成数值类型,当转换失败时结果为 `NaN`(Not a Number)即不是一个数字。 - -```html - - - - - JavaScript 基础 - 隐式转换 - - - - - -``` - - -- Gitee From 8aa92a7b8f6cfbea698e557a3ad4277574db6ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:38:13 +0000 Subject: [PATCH 24/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/21-?= =?UTF-8?q?=E9=9A=90=E5=BC=8F=E8=BD=AC=E6=8D=A2.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\345\274\217\350\275\254\346\215\242.html" | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/21-\351\232\220\345\274\217\350\275\254\346\215\242.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/21-\351\232\220\345\274\217\350\275\254\346\215\242.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/21-\351\232\220\345\274\217\350\275\254\346\215\242.html" deleted file mode 100644 index 83e84d9..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/21-\351\232\220\345\274\217\350\275\254\346\215\242.html" +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From 50cf9e13fc249695f62a12b2026b3fcddf7f97af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:38:20 +0000 Subject: [PATCH 25/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/22-?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E8=BD=AC=E6=8D=A2.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\347\244\272\350\275\254\346\215\242.html" | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/22-\346\230\276\347\244\272\350\275\254\346\215\242.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/22-\346\230\276\347\244\272\350\275\254\346\215\242.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/22-\346\230\276\347\244\272\350\275\254\346\215\242.html" deleted file mode 100644 index ecf2868..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/22-\346\230\276\347\244\272\350\275\254\346\215\242.html" +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - Document - - - - - - - - \ No newline at end of file -- Gitee From 92923f233436856587569a5f384d62938c277a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:38:26 +0000 Subject: [PATCH 26/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/23-?= =?UTF-8?q?=E6=B1=82=E5=92=8C=E6=A1=88=E4=BE=8B.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\345\222\214\346\241\210\344\276\213.html" | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/23-\346\261\202\345\222\214\346\241\210\344\276\213.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/23-\346\261\202\345\222\214\346\241\210\344\276\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/23-\346\261\202\345\222\214\346\241\210\344\276\213.html" deleted file mode 100644 index 618fca2..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/23-\346\261\202\345\222\214\346\241\210\344\276\213.html" +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - Document - - - - - - - \ No newline at end of file -- Gitee From 222c14fc9e1834ef943acc996f2d36eff763e274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:38:31 +0000 Subject: [PATCH 27/30] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C/20241024=20=E5=88=9D=E8=AF=86JS/24-?= =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=A1=88=E4=BE=8B.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\345\220\210\346\241\210\344\276\213.html" | 67 ------------------- 1 file changed, 67 deletions(-) delete mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/24-\347\273\274\345\220\210\346\241\210\344\276\213.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/24-\347\273\274\345\220\210\346\241\210\344\276\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/24-\347\273\274\345\220\210\346\241\210\344\276\213.html" deleted file mode 100644 index d47326d..0000000 --- "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/24-\347\273\274\345\220\210\346\241\210\344\276\213.html" +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - Document - - - - -

订单确认

- - - - - - \ No newline at end of file -- Gitee From 5856d0eb5160d46821ec9e29d8966550ad21463c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:42:20 +0000 Subject: [PATCH 28/30] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林晗希 <2095000342@qq.com> --- .../00.html" | 16 ++++++++ .../01-\344\275\223\351\252\214js.html" | 30 ++++++++++++++ ...347\275\256-\345\206\205\351\203\250.html" | 18 +++++++++ ...347\275\256-\345\244\226\351\203\250.html" | 20 ++++++++++ ...347\275\256-\350\241\214\345\206\205.html" | 20 ++++++++++ ...\344\270\216\346\263\250\351\207\212.html" | 26 +++++++++++++ ...\345\207\272\350\257\255\346\263\225.html" | 26 +++++++++++++ ...\344\270\216\346\233\264\346\226\260.html" | 29 ++++++++++++++ ...\345\220\215\346\241\210\344\276\213.html" | 23 +++++++++++ ...\344\270\252\345\217\230\351\207\217.html" | 27 +++++++++++++ ...\345\220\215\350\247\204\350\214\203.html" | 26 +++++++++++++ ...\351\276\204\346\241\210\344\276\213.html" | 21 ++++++++++ ...\347\232\204\345\214\272\345\210\253.html" | 19 +++++++++ ...\351\252\214\346\225\260\347\273\204.html" | 28 +++++++++++++ .../14-\345\270\270\351\207\217.html" | 23 +++++++++++ ...\345\200\274\347\261\273\345\236\213.html" | 30 ++++++++++++++ ...\347\232\204\351\235\242\347\247\257.html" | 24 ++++++++++++ ...\344\270\262\347\261\273\345\236\213.html" | 39 +++++++++++++++++++ ...\345\255\227\347\254\246\344\270\262.html" | 23 +++++++++++ ...\347\247\215\347\261\273\345\236\213.html" | 29 ++++++++++++++ 20 files changed, 497 insertions(+) create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/00.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/01-\344\275\223\351\252\214js.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/02-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\206\205\351\203\250.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/03-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\244\226\351\203\250.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/04-js\344\271\246\345\206\231\344\275\215\347\275\256-\350\241\214\345\206\205.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/05-\347\273\223\346\235\237\347\254\246\344\270\216\346\263\250\351\207\212.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/06-\350\276\223\345\205\245\345\222\214\350\276\223\345\207\272\350\257\255\346\263\225.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/07-\345\217\230\351\207\217\347\232\204\344\275\277\347\224\250\344\270\216\346\233\264\346\226\260.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/08-\350\276\223\345\205\245\347\224\250\346\210\267\345\220\215\346\241\210\344\276\213.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/09-\344\272\244\346\215\2422\344\270\252\345\217\230\351\207\217.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/10-\345\217\230\351\207\217\347\232\204\345\221\275\345\220\215\350\247\204\350\214\203.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/11-\350\276\223\345\205\245\345\247\223\345\220\215\345\271\264\351\276\204\346\241\210\344\276\213.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/12-let\345\222\214var\347\232\204\345\214\272\345\210\253.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/13-\344\275\223\351\252\214\346\225\260\347\273\204.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/14-\345\270\270\351\207\217.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/15-\346\225\260\345\200\274\347\261\273\345\236\213.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/16-\350\256\241\347\256\227\345\234\206\347\232\204\351\235\242\347\247\257.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/17-\345\255\227\347\254\246\344\270\262\347\261\273\345\236\213.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/18-\346\250\241\346\235\277\345\255\227\347\254\246\344\270\262.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/19-\345\205\266\344\273\226\344\270\211\347\247\215\347\261\273\345\236\213.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/00.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/00.html" new file mode 100644 index 0000000..cad7d8e --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/00.html" @@ -0,0 +1,16 @@ + + + + + + Document + + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/01-\344\275\223\351\252\214js.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/01-\344\275\223\351\252\214js.html" new file mode 100644 index 0000000..bd20047 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/01-\344\275\223\351\252\214js.html" @@ -0,0 +1,30 @@ + + + + + + + + 体验JS + + + + + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/02-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\206\205\351\203\250.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/02-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\206\205\351\203\250.html" new file mode 100644 index 0000000..339498a --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/02-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\206\205\351\203\250.html" @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/03-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\244\226\351\203\250.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/03-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\244\226\351\203\250.html" new file mode 100644 index 0000000..c46c61a --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/03-js\344\271\246\345\206\231\344\275\215\347\275\256-\345\244\226\351\203\250.html" @@ -0,0 +1,20 @@ + + + + + + + + Document + + + + + + + 测试 + + + + diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/04-js\344\271\246\345\206\231\344\275\215\347\275\256-\350\241\214\345\206\205.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/04-js\344\271\246\345\206\231\344\275\215\347\275\256-\350\241\214\345\206\205.html" new file mode 100644 index 0000000..daf824c --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/04-js\344\271\246\345\206\231\344\275\215\347\275\256-\350\241\214\345\206\205.html" @@ -0,0 +1,20 @@ + + + + + + + + Document + + + + + + + 测试 + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/05-\347\273\223\346\235\237\347\254\246\344\270\216\346\263\250\351\207\212.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/05-\347\273\223\346\235\237\347\254\246\344\270\216\346\263\250\351\207\212.html" new file mode 100644 index 0000000..b073ca8 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/05-\347\273\223\346\235\237\347\254\246\344\270\216\346\263\250\351\207\212.html" @@ -0,0 +1,26 @@ + + + + + + + + Document + + + + + + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/06-\350\276\223\345\205\245\345\222\214\350\276\223\345\207\272\350\257\255\346\263\225.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/06-\350\276\223\345\205\245\345\222\214\350\276\223\345\207\272\350\257\255\346\263\225.html" new file mode 100644 index 0000000..a6f446d --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/06-\350\276\223\345\205\245\345\222\214\350\276\223\345\207\272\350\257\255\346\263\225.html" @@ -0,0 +1,26 @@ + + + + + + + + Document + + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/07-\345\217\230\351\207\217\347\232\204\344\275\277\347\224\250\344\270\216\346\233\264\346\226\260.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/07-\345\217\230\351\207\217\347\232\204\344\275\277\347\224\250\344\270\216\346\233\264\346\226\260.html" new file mode 100644 index 0000000..7b55b60 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/07-\345\217\230\351\207\217\347\232\204\344\275\277\347\224\250\344\270\216\346\233\264\346\226\260.html" @@ -0,0 +1,29 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/08-\350\276\223\345\205\245\347\224\250\346\210\267\345\220\215\346\241\210\344\276\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/08-\350\276\223\345\205\245\347\224\250\346\210\267\345\220\215\346\241\210\344\276\213.html" new file mode 100644 index 0000000..cfb9711 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/08-\350\276\223\345\205\245\347\224\250\346\210\267\345\220\215\346\241\210\344\276\213.html" @@ -0,0 +1,23 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/09-\344\272\244\346\215\2422\344\270\252\345\217\230\351\207\217.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/09-\344\272\244\346\215\2422\344\270\252\345\217\230\351\207\217.html" new file mode 100644 index 0000000..e19ef6e --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/09-\344\272\244\346\215\2422\344\270\252\345\217\230\351\207\217.html" @@ -0,0 +1,27 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/10-\345\217\230\351\207\217\347\232\204\345\221\275\345\220\215\350\247\204\350\214\203.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/10-\345\217\230\351\207\217\347\232\204\345\221\275\345\220\215\350\247\204\350\214\203.html" new file mode 100644 index 0000000..1e37ac4 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/10-\345\217\230\351\207\217\347\232\204\345\221\275\345\220\215\350\247\204\350\214\203.html" @@ -0,0 +1,26 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/11-\350\276\223\345\205\245\345\247\223\345\220\215\345\271\264\351\276\204\346\241\210\344\276\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/11-\350\276\223\345\205\245\345\247\223\345\220\215\345\271\264\351\276\204\346\241\210\344\276\213.html" new file mode 100644 index 0000000..1163ff7 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/11-\350\276\223\345\205\245\345\247\223\345\220\215\345\271\264\351\276\204\346\241\210\344\276\213.html" @@ -0,0 +1,21 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/12-let\345\222\214var\347\232\204\345\214\272\345\210\253.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/12-let\345\222\214var\347\232\204\345\214\272\345\210\253.html" new file mode 100644 index 0000000..2ed8213 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/12-let\345\222\214var\347\232\204\345\214\272\345\210\253.html" @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/13-\344\275\223\351\252\214\346\225\260\347\273\204.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/13-\344\275\223\351\252\214\346\225\260\347\273\204.html" new file mode 100644 index 0000000..63ca149 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/13-\344\275\223\351\252\214\346\225\260\347\273\204.html" @@ -0,0 +1,28 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/14-\345\270\270\351\207\217.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/14-\345\270\270\351\207\217.html" new file mode 100644 index 0000000..172841d --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/14-\345\270\270\351\207\217.html" @@ -0,0 +1,23 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/15-\346\225\260\345\200\274\347\261\273\345\236\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/15-\346\225\260\345\200\274\347\261\273\345\236\213.html" new file mode 100644 index 0000000..1d9dc02 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/15-\346\225\260\345\200\274\347\261\273\345\236\213.html" @@ -0,0 +1,30 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/16-\350\256\241\347\256\227\345\234\206\347\232\204\351\235\242\347\247\257.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/16-\350\256\241\347\256\227\345\234\206\347\232\204\351\235\242\347\247\257.html" new file mode 100644 index 0000000..b851ba3 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/16-\350\256\241\347\256\227\345\234\206\347\232\204\351\235\242\347\247\257.html" @@ -0,0 +1,24 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/17-\345\255\227\347\254\246\344\270\262\347\261\273\345\236\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/17-\345\255\227\347\254\246\344\270\262\347\261\273\345\236\213.html" new file mode 100644 index 0000000..5081ae2 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/17-\345\255\227\347\254\246\344\270\262\347\261\273\345\236\213.html" @@ -0,0 +1,39 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/18-\346\250\241\346\235\277\345\255\227\347\254\246\344\270\262.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/18-\346\250\241\346\235\277\345\255\227\347\254\246\344\270\262.html" new file mode 100644 index 0000000..f0d7241 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/18-\346\250\241\346\235\277\345\255\227\347\254\246\344\270\262.html" @@ -0,0 +1,23 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/19-\345\205\266\344\273\226\344\270\211\347\247\215\347\261\273\345\236\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/19-\345\205\266\344\273\226\344\270\211\347\247\215\347\261\273\345\236\213.html" new file mode 100644 index 0000000..247d1a8 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/19-\345\205\266\344\273\226\344\270\211\347\247\215\347\261\273\345\236\213.html" @@ -0,0 +1,29 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file -- Gitee From 29eb338cbd279ded5efb4ba913b963514161301f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:42:39 +0000 Subject: [PATCH 29/30] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林晗希 <2095000342@qq.com> --- ...\346\215\256\347\261\273\345\236\213.html" | 32 + .../20241024 \345\210\235\350\257\206JS.md" | 553 ++++++++++++++++++ ...\345\274\217\350\275\254\346\215\242.html" | 24 + ...\347\244\272\350\275\254\346\215\242.html" | 39 ++ ...\345\222\214\346\241\210\344\276\213.html" | 20 + ...\345\220\210\346\241\210\344\276\213.html" | 67 +++ 6 files changed, 735 insertions(+) create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/20-\346\243\200\346\265\213\346\225\260\346\215\256\347\261\273\345\236\213.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS.md" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/21-\351\232\220\345\274\217\350\275\254\346\215\242.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/22-\346\230\276\347\244\272\350\275\254\346\215\242.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/23-\346\261\202\345\222\214\346\241\210\344\276\213.html" create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/24-\347\273\274\345\220\210\346\241\210\344\276\213.html" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/20-\346\243\200\346\265\213\346\225\260\346\215\256\347\261\273\345\236\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/20-\346\243\200\346\265\213\346\225\260\346\215\256\347\261\273\345\236\213.html" new file mode 100644 index 0000000..6fe7b78 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/20-\346\243\200\346\265\213\346\225\260\346\215\256\347\261\273\345\236\213.html" @@ -0,0 +1,32 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS.md" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS.md" new file mode 100644 index 0000000..71e65d4 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS.md" @@ -0,0 +1,553 @@ +# 第一章,与君初相见 + +## 第一节 + +### JavaScript 简介 + +1. JavaScript 是什么: + JavaScript 是一种运行在浏览器的脚本编程语言。它不需要编译,可直接在浏览器上运行。 + +2. JavaScript 由什么组成: + ECMAScript (基础语法)和 Web APIs (DOM、BOM) + +### JavaScript 书写位置 + + + +JavaScript 程序不能独立运行,它需要被嵌入 HTML 中,然后浏览器才能执行 JavaScript 代码。通过 `script` 标签将 JavaScript 代码引入到 HTML 中,有三种方式: + +#### 1.内部方式 + +通过 `script` 标签包裹 JavaScript 代码 + +```html + + + + + JavaScript 基础 - 内部引入方式 + + + + + + +``` + +#### 2.外部方式 + +一般将 JavaScript 代码写在独立的以 .js 结尾的文件中,然后通过 `script` 标签的 `src` 属性引入 + +```javascript +// demo.js +document.write('前端技术!') +``` + +```html + + + + + JavaScript 基础 - 外部引入方式 + + + + + + +``` + +如果 script 标签使用 src 属性引入了某 .js 文件,那么 标签的代码会被忽略!!!如下代码所示: + +```html + + + + + JavaScript 基础 - 外部引入方式 + + + + + + +``` + +#### 3.行内方式 + +在HTML文档中可以在``标签、``标签中使用JavaScript脚本作为它们的属性值。 + +```html + + + + + JavaScript 基础 - 行内引入方式 + + + + 测试 + + + +``` + +### 注释和结束符 + +通过注释可以屏蔽代码被执行或者添加备注信息,JavaScript 支持两种形式注释语法: + +#### 单行注释 + +使用 `// ` 注释单行代码 + +```html + + + + + JavaScript 基础 - 注释 + + + + + + +``` + +#### 多行注释 + +使用 `/* */` 注释多行代码 + +```html + + + + + JavaScript 基础 - 注释 + + + + + + +``` + +**注:编辑器中单行注释的快捷键为 `ctrl + /`、多行注释快捷键为`alt + shift + a`** + +### 结束符 + +在 JavaScript 中 `;` 代表一段代码的结束,多数情况下可以省略 `;` 使用回车(enter)替代。 + +```html + + + + + JavaScript 基础 - 结束符 + + + + + + +``` + +> 对于初学者,建议以;号来结束代码; + +### 文档输出内容 + +1. 向 `body` 内输出内容 + + ```js + // 输出一段文字内容 + document.write("我是 JS 输出的内容"); + + // 输出一个一级标签 + document.write("

我是一个一级标签

"); + ``` + +2. 网页弹出警示框 + + ```js + alert("网页弹窗"); + ``` + +3. 向控制台输出内容,常用于调试 + + ```js + console.log("控制台输出内容"); + ``` + +### 输入语法 + +显示对话框,对话框内包含一段文字信息,用来提示用户输入内容 + +```js +prompt("请输入一段内容"); +``` + +### 代码执行顺序 + +1. 按照 HTML 文档流顺序执行 JavaScript 代码 +2. `alert()` 和 `prompt()` 会跳过页面渲染先被执行 + +定义:计算机用于**存储数据**的**容器**,可以让计算机有记忆。_(注意:变量不是数据本身,它们仅仅是一个用于存储数值的容器)_ + +### 变量的基本使用 + +#### 1.声明变量 + +语法: + +```js +let 变量名; +let 变量名 = 值, + 变量名 = 值; +``` + +1. 声明变量有两部分构成:声明关键字、变量名 + +2. `let` 即关键字,所谓关键字是系统提供的专门声明变量的词语 + + ```js + let age; + let money; + let text; + + let num1 = 20, + num2 = 30; + ``` + +#### 2.变量赋值 + +语法: + +```js +// 声明变量 +let age; + +// 进行赋值 +age = 18; + +// 声明同时并赋值(变量的初始化) +let num = 20; +``` + +#### 3.更新变量 + +语法: + +```js +// 变量初始化 +let age = 18; + +// 更新变量 +age = 19; +``` + +### 变量的其他初始化(不推荐使用) + +```js +let name = prompt("请输入姓名"); +``` + +### 变量的本质 + +1. 内存:计算机中存储数据的地方,相当于一个空间 +2. 变量:程序在内存中申请的一块用于存放数据的小空间 + +### 变量的命名规则与规范 + +#### 规则 + +1. JavaScript 内部已占用于单词(关键字或保留字)不允许使用 +2. 只能由下划线 `_` 、字母、数字、 `$` 组成,且不可以以数字开头 +3. 字母严格**区分大小写**,如 Age 和 age 是不同的变量 + +#### 规范 + +1. 尽量保证变量具有一定的语义,见字知义 + +2. 遵守小驼峰命名法:即第一个单词首字母小写,后面每个单词首字母大写 + 例: `userName` `userId` `userNameOld` + +### 关键字 + +JavaScript 使用专门的关键字 `let` 和 `var` 来声明(定义)变量,在使用时需要注意一些细节: + +以下是使用 `let` 时的注意事项: + +1. 允许声明和赋值同时进行 +2. 不允许重复声明 +3. 允许同时声明多个变量并赋值 +4. JavaScript 中内置的一些关键字不能被当做变量名 + +以下是使用 `var` 时的注意事项: + +2. 允许声明和赋值同时进行 +3. 允许重复声明 +4. 允许同时声明多个变量并赋值 + +大部分情况使用 `let` 和 `var` 区别不大,但是 `let` 相较 `var` 更严谨,因此推荐使用 `let`,后期会更进一步介绍二者间的区别。 + + + +## 常量 + +概念:使用 const 声明的变量称为“常量”。 + +使用场景:当某个变量永远不会改变的时候,就可以使用 const 来声明,而不是let。 + +命名规范:和变量一致 + +```javascript +const PI = 3.14 +``` + +> 注意: 常量不允许重新赋值,声明的时候必须赋值(初始化) + +## 数据类型 + +> 计算机世界中的万事万物都是数据。 + +计算机程序可以处理大量的数据,为了方便数据的管理,将数据分成了不同的类型: + +JavaScript的数据类型有数值,字符串,布尔, + +注:通过 typeof 关键字检测数据类型 + +```html + + + + + JavaScript 基础 - 数据类型 + + + + + + +``` + +### 数值类型 number + +即我们数学中学习到的数字,可以是整数、小数、正数、负数 + +```html + + + + + JavaScript 基础 - 数据类型 + + + + + + +``` + +JavaScript 中的数值类型与数学中的数字是一样的,分为正数、负数、小数等。 + +### 字符串类型 string + +通过单引号( `''`) 、双引号( `""`)或反引号`包裹的数据都叫字符串,单引号和双引号没有本质上的区别,推荐使用单引号。 + +> `反引号标记的字符串,叫模板字符串 + +注意事项: + +1. 无论单引号或是双引号必须成对使用 +2. 单引号/双引号可以互相嵌套,但是不以自已嵌套自已 +3. 必要时可以使用转义符 `\`,输出单引号或双引号 + +```html + + + + + JavaScript 基础 - 数据类型 + + + + + + +``` + +### 布尔类型 + +表示肯定或否定时在计算机中对应的是布尔类型数据,它有两个固定的值 `true` 和 `false`,表示肯定的数据用 `true`,表示否定的数据用 `false`。 + +```html + + + + + JavaScript 基础 - 数据类型 + + + + + + +``` + +### undefined + +未定义是比较特殊的类型,只有一个值 undefined,只声明变量,不赋值的情况下,变量的默认值为 undefined,一般很少【直接】为某个变量赋值为 undefined。 + +```html + + + + + JavaScript 基础 - 数据类型 + + + + + + +``` + +**注:JavaScript 中变量的值决定了变量的数据类型。** + +## 类型转换 + +> 理解弱类型语言的特征,掌握显式类型转换的方法 + +在 JavaScript 中数据被分成了不同的类型,如数值、字符串、布尔值、undefined,在实际编程的过程中,不同数据类型之间存在着转换的关系。 + +### 隐式转换 + +某些运算符被执行时,系统内部自动将数据类型进行转换,这种转换称为隐式转换。 + +```html + + + + + JavaScript 基础 - 隐式转换 + + + + + +``` + +注:数据类型的隐式转换是 JavaScript 的特征,后续学习中还会遇到,目前先需要理解什么是隐式转换。 + +**模板字符串用`s{}`实现变量与字符串的拼接 + +### 显式转换 + +编写程序时过度依靠系统内部的隐式转换是不严禁的,因为隐式转换规律并不清晰,大多是靠经验总结的规律。为了避免因隐式转换带来的问题,通常根逻辑需要对数据进行显示转换。 + +#### Number + +通过 `Number` 显示转换成数值类型,当转换失败时结果为 `NaN`(Not a Number)即不是一个数字。 + +```html + + + + + JavaScript 基础 - 隐式转换 + + + + + +``` + + diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/21-\351\232\220\345\274\217\350\275\254\346\215\242.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/21-\351\232\220\345\274\217\350\275\254\346\215\242.html" new file mode 100644 index 0000000..83e84d9 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/21-\351\232\220\345\274\217\350\275\254\346\215\242.html" @@ -0,0 +1,24 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/22-\346\230\276\347\244\272\350\275\254\346\215\242.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/22-\346\230\276\347\244\272\350\275\254\346\215\242.html" new file mode 100644 index 0000000..ecf2868 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/22-\346\230\276\347\244\272\350\275\254\346\215\242.html" @@ -0,0 +1,39 @@ + + + + + + + + Document + + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/23-\346\261\202\345\222\214\346\241\210\344\276\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/23-\346\261\202\345\222\214\346\241\210\344\276\213.html" new file mode 100644 index 0000000..618fca2 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/23-\346\261\202\345\222\214\346\241\210\344\276\213.html" @@ -0,0 +1,20 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/24-\347\273\274\345\220\210\346\241\210\344\276\213.html" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/24-\347\273\274\345\220\210\346\241\210\344\276\213.html" new file mode 100644 index 0000000..d47326d --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241024 \345\210\235\350\257\206JS/24-\347\273\274\345\220\210\346\241\210\344\276\213.html" @@ -0,0 +1,67 @@ + + + + + + + + Document + + + + +

订单确认

+ + + + + + \ No newline at end of file -- Gitee From 74a076ee810cc124fd33728aae1388fcb3ada04d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=97=E5=B8=8C?= <2095000342@qq.com> Date: Sun, 27 Oct 2024 15:43:33 +0000 Subject: [PATCH 30/30] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林晗希 <2095000342@qq.com> --- ...JS\347\273\203\344\271\240\351\242\230.md" | 185 ++++++++++++++++++ 1 file changed, 185 insertions(+) create mode 100644 "\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241025 JS\347\273\203\344\271\240\351\242\230.md" diff --git "a/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241025 JS\347\273\203\344\271\240\351\242\230.md" "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241025 JS\347\273\203\344\271\240\351\242\230.md" new file mode 100644 index 0000000..a5dd196 --- /dev/null +++ "b/\346\236\227\346\231\227\345\270\214/20241024 \345\210\235\350\257\206JS/20241025 JS\347\273\203\344\271\240\351\242\230.md" @@ -0,0 +1,185 @@ +# 一、每日作业-JavaScript第01天 + +## 简答题 + +1.依次说明下面各打印语句的输出结果? + +```javascript + const num = 10 10 + console.log( num + 11) 21 + console.log( num + '11') 1011 + console.log( num + +'11') 21 +``` + +2.依次说明下面各打印语句的输出结果 + +```javascript +const num = 10 +console.log( typeof num + '11') number11 +console.log( typeof (num + '11')) string +console.log( typeof (num + +'11')) number +``` + +## 编程题 + +### 获取用户信息 + +- 题目描述 + 依次询问并获取用户的姓名、年龄、性别,收集数据之后在控制台依次打印出来。 + 具体表现如下图: + + + + + +- 题目提示 + - 通过prompt来弹出提示框,收集用户信息 + - 通过变量保存数据 + +```html + + + + + 获取用户信息 + + + + + +``` + + + + + +### 增加年龄 + +- 题目描述 + 1、询问用户年龄,用户输入年龄后,把用户输入的年龄增加5岁 + 2、增加5岁后,通过弹出框提示用户 “ 据我估计,五年后,你可能XX岁了” + + + + + +- 题目提示 + + - 通过prompt来弹出提示框,收集用户信息 + - 通过变量保存数据 + - 转换数据类型(需要预习第二天的数据类型转换哟) + +```html + + + + + 增加年龄 + + + + + +``` + + + +### 计算银行卡余额案例 + +- 题目描述 + 1、用户输入总的银行卡金额,依次输入本月花费的电费,水费,网费。 + 2、页面打印一个表格,计算出本月银行卡还剩下的余额。 + + + +- 题目提示 + + - 思路: + 1.我们需要5个变量:银行卡总额、水费、电费、网费、银行卡余额 + 2.银行卡余额= 银行卡总额 – 水费 –电费 - 网费 + 3.第一步准备5个变量接受输入的数据 + 4.第二步计算银行卡余额 + 5.第三步页面打印生成表格,里面填充数据即可。 + 6.当然可以提前把html页面搭好。 + +```html + + + + + 计算银行卡余额 + + + +

银行卡余额计算

+ + + +``` -- Gitee