diff --git "a/20241024 \345\210\235\350\257\206JS/JS.md" "b/\345\220\264\344\275\263\345\256\207/20241024 \345\210\235\350\257\206JS/JS.md" similarity index 100% rename from "20241024 \345\210\235\350\257\206JS/JS.md" rename to "\345\220\264\344\275\263\345\256\207/20241024 \345\210\235\350\257\206JS/JS.md" diff --git "a/20241024 \345\210\235\350\257\206JS/WJY/com/CSS/ys.css" "b/\345\220\264\344\275\263\345\256\207/20241024 \345\210\235\350\257\206JS/WJY/com/CSS/ys.css" similarity index 100% rename from "20241024 \345\210\235\350\257\206JS/WJY/com/CSS/ys.css" rename to "\345\220\264\344\275\263\345\256\207/20241024 \345\210\235\350\257\206JS/WJY/com/CSS/ys.css" diff --git "a/20241024 \345\210\235\350\257\206JS/WJY/com/JS/xw.js" "b/\345\220\264\344\275\263\345\256\207/20241024 \345\210\235\350\257\206JS/WJY/com/JS/xw.js" similarity index 100% rename from "20241024 \345\210\235\350\257\206JS/WJY/com/JS/xw.js" rename to "\345\220\264\344\275\263\345\256\207/20241024 \345\210\235\350\257\206JS/WJY/com/JS/xw.js" diff --git "a/20241024 \345\210\235\350\257\206JS/WJY/com/wy.html" "b/\345\220\264\344\275\263\345\256\207/20241024 \345\210\235\350\257\206JS/WJY/com/wy.html" similarity index 100% rename from "20241024 \345\210\235\350\257\206JS/WJY/com/wy.html" rename to "\345\220\264\344\275\263\345\256\207/20241024 \345\210\235\350\257\206JS/WJY/com/wy.html" diff --git "a/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/01\344\275\234\344\270\232.md" "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/01\344\275\234\344\270\232.md" new file mode 100644 index 0000000000000000000000000000000000000000..88960fec2915531169142d548ea8084030f84764 --- /dev/null +++ "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/01\344\275\234\344\270\232.md" @@ -0,0 +1,86 @@ +# 一、每日作业-JavaScript第01天 + +## 简答题 + +1.依次说明下面各打印语句的输出结果? + +```javascript + const num = 10 + console.log( num + 11) + console.log( num + '11') + console.log( num + +'11') +``` + +2.依次说明下面各打印语句的输出结果 + +```javascript +const num = 10 +console.log( typeof num + '11') +console.log( typeof (num + '11')) +console.log( typeof (num + +'11')) +``` + +## 编程题 + +### 获取用户信息 + +- 题目描述 + + 依次询问并获取用户的姓名、年龄、性别,收集数据之后在控制台依次打印出来。 + + 具体表现如下图: + + + + + + +- 题目提示 + - 通过prompt来弹出提示框,收集用户信息 + - 通过变量保存数据 + +### 增加年龄 + +- 题目描述 + + 1、询问用户年龄,用户输入年龄后,把用户输入的年龄增加5岁 + + 2、增加5岁后,通过弹出框提示用户 “ 据我估计,五年后,你可能XX岁了” + + + + + +- 题目提示 + + - 通过prompt来弹出提示框,收集用户信息 + - 通过变量保存数据 + - 转换数据类型(需要预习第二天的数据类型转换哟) + +### 计算银行卡余额案例 + +- 题目描述 + + 1、用户输入总的银行卡金额,依次输入本月花费的电费,水费,网费。 + + 2、页面打印一个表格,计算出本月银行卡还剩下的余额。 + + + + +- 题目提示 + + - 思路: + + 1.我们需要5个变量:银行卡总额、水费、电费、网费、银行卡余额 + + 2.银行卡余额= 银行卡总额 – 水费 –电费 - 网费 + + 3.第一步准备5个变量接受输入的数据 + + 4.第二步计算银行卡余额 + + 5.第三步页面打印生成表格,里面填充数据即可。 + + 6.当然可以提前把html页面搭好。 + diff --git "a/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/111.gif" "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/111.gif" new file mode 100644 index 0000000000000000000000000000000000000000..31a2e8979085ff96ec951627d87e45cf4e29d49b Binary files /dev/null and "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/111.gif" differ diff --git "a/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2071.png" "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2071.png" new file mode 100644 index 0000000000000000000000000000000000000000..1549cf229047038056f90d1dd76149ce787006e8 Binary files /dev/null and "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2071.png" differ diff --git "a/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2072(1).png" "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2072(1).png" new file mode 100644 index 0000000000000000000000000000000000000000..0f110292ad76831ddc404b244c429aaf460f3bc2 Binary files /dev/null and "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2072(1).png" differ diff --git "a/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2073.png" "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2073.png" new file mode 100644 index 0000000000000000000000000000000000000000..29658c842b24df64de50545ba5fda4f0c94a4706 Binary files /dev/null and "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2073.png" differ diff --git "a/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2074.png" "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2074.png" new file mode 100644 index 0000000000000000000000000000000000000000..b7c62ea8ccb37642b45ba0c34e2e0b278a264bba Binary files /dev/null and "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2074.png" differ diff --git "a/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2075.png" "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2075.png" new file mode 100644 index 0000000000000000000000000000000000000000..637858a9e59baea7673172c7559e13983f180de8 Binary files /dev/null and "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2075.png" differ diff --git "a/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2076.png" "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2076.png" new file mode 100644 index 0000000000000000000000000000000000000000..3e2142339d5cd913fb283cf314e4fa92767a25c6 Binary files /dev/null and "b/\345\220\264\344\275\263\345\256\207/20241025/01-\351\242\230\347\233\256/images/\345\233\276\347\211\2076.png" differ diff --git "a/\345\220\264\344\275\263\345\256\207/20241025/WJY/test1/test1.html" "b/\345\220\264\344\275\263\345\256\207/20241025/WJY/test1/test1.html" new file mode 100644 index 0000000000000000000000000000000000000000..f32248800333ff8d1144ee6ffe7893c730b6a955 --- /dev/null +++ "b/\345\220\264\344\275\263\345\256\207/20241025/WJY/test1/test1.html" @@ -0,0 +1,19 @@ + + + + + + + 第一题 + + + + + \ No newline at end of file diff --git "a/\345\220\264\344\275\263\345\256\207/20241025/WJY/test2/test2.html" "b/\345\220\264\344\275\263\345\256\207/20241025/WJY/test2/test2.html" new file mode 100644 index 0000000000000000000000000000000000000000..76f4b3c106d1ecd2537dbd0158ac822996146023 --- /dev/null +++ "b/\345\220\264\344\275\263\345\256\207/20241025/WJY/test2/test2.html" @@ -0,0 +1,14 @@ + + + + + + 第二题 + + + + + \ No newline at end of file diff --git "a/\345\220\264\344\275\263\345\256\207/20241025/WJY/test3/CSS/test3.css" "b/\345\220\264\344\275\263\345\256\207/20241025/WJY/test3/CSS/test3.css" new file mode 100644 index 0000000000000000000000000000000000000000..2c3e019d560ad9de530fdb6805c9842cb948dfc7 --- /dev/null +++ "b/\345\220\264\344\275\263\345\256\207/20241025/WJY/test3/CSS/test3.css" @@ -0,0 +1,19 @@ +h1{ + padding-top: 100px; + text-align: center; +} + +table{ + width: 600px; + height: 100px; + margin: auto; + border: 1px black solid; + border-collapse: collapse; + text-align: center; +} + +tr,th,td{ + border: 1px black solid; + border-collapse: collapse; + text-align: center; +} \ No newline at end of file diff --git "a/\345\220\264\344\275\263\345\256\207/20241025/WJY/test3/JS/test3.js" "b/\345\220\264\344\275\263\345\256\207/20241025/WJY/test3/JS/test3.js" new file mode 100644 index 0000000000000000000000000000000000000000..2e5f58180aeda804e8390936c6b57b1c8461593c --- /dev/null +++ "b/\345\220\264\344\275\263\345\256\207/20241025/WJY/test3/JS/test3.js" @@ -0,0 +1,23 @@ +let rental = prompt('请输入银行卡余额:'); +let water = prompt('请输入水费:'); +let electricity = prompt('请输入电费:'); +let online = prompt('请输入网费:'); +let balance = +rental - +water - +electricity - +online +document.write(` + + + + + + + + + + + + + + + +
银行卡余额水费电费网费银行卡余额
${rental}元${water}元${electricity}元${online}元${balance}元
+`); diff --git "a/\345\220\264\344\275\263\345\256\207/20241025/WJY/test3/test3.html" "b/\345\220\264\344\275\263\345\256\207/20241025/WJY/test3/test3.html" new file mode 100644 index 0000000000000000000000000000000000000000..7dfda76f824ab0a21e41d24bbd6660d214ff9eb2 --- /dev/null +++ "b/\345\220\264\344\275\263\345\256\207/20241025/WJY/test3/test3.html" @@ -0,0 +1,13 @@ + + + + + + 第三题 + + + +

2020年12月消费支出

+ + + \ No newline at end of file