From 1238564ef0c842705b856c9aab8bd24913108468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B2=E7=BA=AF=E6=AC=A3?= <1759931586@qq.com> Date: Wed, 30 Oct 2024 11:53:18 +0800 Subject: [PATCH 1/3] 20241029 --- ...02\345\244\251\344\275\234\344\270\232.md" | 69 +++++++++++++ .../\344\275\234\344\270\232.html" | 42 ++++++++ ...\347\273\203\344\271\240\351\242\230.html" | 99 +++++++++++++++++++ 3 files changed, 210 insertions(+) create mode 100644 "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/JavaScript\345\237\272\347\241\200\347\254\25402\345\244\251\344\275\234\344\270\232.md" create mode 100644 "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\344\275\234\344\270\232.html" create mode 100644 "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\347\273\203\344\271\240\351\242\230.html" diff --git "a/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/JavaScript\345\237\272\347\241\200\347\254\25402\345\244\251\344\275\234\344\270\232.md" "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/JavaScript\345\237\272\347\241\200\347\254\25402\345\244\251\344\275\234\344\270\232.md" new file mode 100644 index 0000000..4b5fbcc --- /dev/null +++ "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/JavaScript\345\237\272\347\241\200\347\254\25402\345\244\251\344\275\234\344\270\232.md" @@ -0,0 +1,69 @@ + + +### 核心知识点 + +1. 打印0-20之间的整数, 将每个数输出到控制台 + +2. 计算1-1000之间的累加和,并且打印输出到页面中 + +3. 页面依次打印 100-200之间,可以被6整除的数字 + +4. **用户输入一个数, 计算 1 到这个数的累加和** + + - 比如 用户输入的是 5, 则计算 1~5 之间的累加和 + - 比如用户输入的是10, 则计算 1~10 之间的累加和 + +6. **输出星期练习(请使用switch分支语句来书写程序)** + + 题目描述: + + 请用户输入1个星期数. 就将对应的英文的星期打印出来. + + - 比如用户输入'星期一', 则 页面可以打印 monday + - 英文自己查有道。比如星期一是 monday 星期二是 tuesday + +8. **用户登录验证** + + 题目描述: + + 接收用户输入的用户名和密码,若用户名为 “admin” ,且密码为 “123456” ,则提示用户登录成功! 否则,让用户一直输入。 + + + +### 综合案例变形 + +需求:根据用户选择计算两个数的结果: + +**题目描述:** + +打开页面出现一个提示框,注意是一直提示的,'请您选择 + - * / ,如果输入q,则是退出结束程序 + +- 如果输入的是 + - * / 其中任何一个,比如用户输入是 + ,则是计算求和,如果用户输入是 * 则是计算乘积 + - 提示第一个弹窗,提示用户:'请您输入第一个数字' + - 输入完毕则继续提示第二个弹窗,提示用户:'请您输入第二个数字' + - 都输入完毕,则通过警示框 alert 输出结果 +- 如果输入是 q,则结束程序 + +提示:多分支请使用 if 多分支来完成 + +具体效果如图: + + + +## 简答题:关键字汇总( 能够简单的说出来这些关键字干啥用的 ) + +- let 用于声明一个块级作用域的变量 +- typeof 用于返回一个变量或表达式的数据类型的字符串 +- if 用于执行条件语句 +- else 与 `if` 结合使用,用于在 `if` 条件不成立时执行的代码块 +- switch 用于根据不同的表达式值执行不同的代码块 +- case 在 `switch` 语句中使用,用于定义一个具体的条件,当表达式匹配时执行相应的代码块 +- default 在 `switch` 语句中使用,表示当所有 `case` 都不匹配时执行的代码块 +- while 用于创建一个循环,只要指定的条件为真,就会反复执行代码块 +- break 用于退出循环或 `switch` 语句,立即停止执行 +- continue 用于在循环中跳过当前迭代的剩余部分,直接开始下一次迭代 + + + + + diff --git "a/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\344\275\234\344\270\232.html" "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\344\275\234\344\270\232.html" new file mode 100644 index 0000000..67e8d76 --- /dev/null +++ "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\344\275\234\344\270\232.html" @@ -0,0 +1,42 @@ + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\347\273\203\344\271\240\351\242\230.html" "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\347\273\203\344\271\240\351\242\230.html" new file mode 100644 index 0000000..d8d0e31 --- /dev/null +++ "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\347\273\203\344\271\240\351\242\230.html" @@ -0,0 +1,99 @@ + + + + + + Document + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- Gitee From b5ead551467ab88e886bd94663e6a4ce3b4e8349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B2=E7=BA=AF=E6=AC=A3?= <1759931586@qq.com> Date: Wed, 30 Oct 2024 11:57:25 +0800 Subject: [PATCH 2/3] 20241029 --- ...\241\200\347\254\25402\345\244\251\344\275\234\344\270\232.md" | 0 .../\344\275\234\344\270\232.html" | 0 .../\347\273\203\344\271\240\351\242\230.html" | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/JavaScript\345\237\272\347\241\200\347\254\25402\345\244\251\344\275\234\344\270\232.md" => "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/JavaScript\345\237\272\347\241\200\347\254\25402\345\244\251\344\275\234\344\270\232.md" (100%) rename "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\344\275\234\344\270\232.html" => "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\344\275\234\344\270\232.html" (100%) rename "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\347\273\203\344\271\240\351\242\230.html" => "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\351\242\230.html" (100%) diff --git "a/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/JavaScript\345\237\272\347\241\200\347\254\25402\345\244\251\344\275\234\344\270\232.md" "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/JavaScript\345\237\272\347\241\200\347\254\25402\345\244\251\344\275\234\344\270\232.md" similarity index 100% rename from "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/JavaScript\345\237\272\347\241\200\347\254\25402\345\244\251\344\275\234\344\270\232.md" rename to "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/JavaScript\345\237\272\347\241\200\347\254\25402\345\244\251\344\275\234\344\270\232.md" diff --git "a/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\344\275\234\344\270\232.html" "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\344\275\234\344\270\232.html" similarity index 100% rename from "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\344\275\234\344\270\232.html" rename to "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\344\275\234\344\270\232.html" diff --git "a/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\347\273\203\344\271\240\351\242\230.html" "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\351\242\230.html" similarity index 100% rename from "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240/\347\273\203\344\271\240\351\242\230.html" rename to "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\351\242\230.html" -- Gitee From ac98df738eb5f1be7de299d3e9ac5b3c23b84407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B2=E7=BA=AF=E6=AC=A3?= <1759931586@qq.com> Date: Sat, 2 Nov 2024 18:22:11 +0800 Subject: [PATCH 3/3] 20241029 --- ...\345\272\247\344\275\215\350\241\250.html" | 41 +++++++++++++++++++ ...\344\271\230\346\263\225\350\241\250.html" | 40 ++++++++++++++++++ .../\344\275\234\344\270\232.html" | 0 ...\347\273\203\344\271\240\351\242\230.html" | 0 4 files changed, 81 insertions(+) create mode 100644 "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\344\270\207\350\276\276\345\275\261\351\231\242\345\272\247\344\275\215\350\241\250.html" create mode 100644 "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\344\271\235\344\271\235\344\271\230\346\263\225\350\241\250.html" rename "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\344\275\234\344\270\232.html" => "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\344\275\234\344\270\232.html" (100%) rename "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\351\242\230.html" => "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\347\273\203\344\271\240\351\242\230.html" (100%) diff --git "a/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\344\270\207\350\276\276\345\275\261\351\231\242\345\272\247\344\275\215\350\241\250.html" "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\344\270\207\350\276\276\345\275\261\351\231\242\345\272\247\344\275\215\350\241\250.html" new file mode 100644 index 0000000..072d34f --- /dev/null +++ "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\344\270\207\350\276\276\345\275\261\351\231\242\345\272\247\344\275\215\350\241\250.html" @@ -0,0 +1,41 @@ + + + + + + 万达影院座位表 + + + + + + +

万达影院座位表

+ + \ No newline at end of file diff --git "a/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\344\271\235\344\271\235\344\271\230\346\263\225\350\241\250.html" "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\344\271\235\344\271\235\344\271\230\346\263\225\350\241\250.html" new file mode 100644 index 0000000..5df80ce --- /dev/null +++ "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\344\271\235\344\271\235\344\271\230\346\263\225\350\241\250.html" @@ -0,0 +1,40 @@ + + + + + + 九九乘法表 + + + + + + +

九九乘法表

+ + \ No newline at end of file diff --git "a/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\344\275\234\344\270\232.html" "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\344\275\234\344\270\232.html" similarity index 100% rename from "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\344\275\234\344\270\232.html" rename to "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\344\275\234\344\270\232.html" diff --git "a/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\351\242\230.html" "b/\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\347\273\203\344\271\240\351\242\230.html" similarity index 100% rename from "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\351\242\230.html" rename to "\345\271\262\347\272\257\346\254\243/2024.1029 \345\276\252\347\216\257/\347\273\203\344\271\240\344\270\216\344\275\234\344\270\232/\347\273\203\344\271\240\351\242\230.html" -- Gitee