From 0e8c6fc8f9e47d959c7a7899411d95f8cc1b1641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= <3013545725@qq.com> Date: Fri, 14 Oct 2022 04:50:07 +0000 Subject: [PATCH 1/9] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2044=20=E7=BD=97?= =?UTF-8?q?=E5=90=AF=E6=81=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "44 \347\275\227\345\220\257\346\201\222/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "44 \347\275\227\345\220\257\346\201\222/.keep" diff --git "a/44 \347\275\227\345\220\257\346\201\222/.keep" "b/44 \347\275\227\345\220\257\346\201\222/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 236a1b2dbbf7d8b09b0283e46cc48108d0b4cf7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= <3013545725@qq.com> Date: Fri, 14 Oct 2022 04:50:28 +0000 Subject: [PATCH 2/9] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/.keep" diff --git "a/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/.keep" "b/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 28bdb64d8e7e1828b6436a9b4830525cb9ee1c21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= <3013545725@qq.com> Date: Fri, 14 Oct 2022 04:50:37 +0000 Subject: [PATCH 3/9] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\224\350\256\260/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/.keep" diff --git "a/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/.keep" "b/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c28b951426434f56e6a0f05585c24aeaefbd4b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= <3013545725@qq.com> Date: Fri, 14 Oct 2022 04:58:47 +0000 Subject: [PATCH 4/9] =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗启恒 <3013545725@qq.com> --- .../\344\275\234\344\270\232/cc.html" | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 "44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/cc.html" diff --git "a/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/cc.html" "b/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/cc.html" new file mode 100644 index 0000000..be924ec --- /dev/null +++ "b/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/cc.html" @@ -0,0 +1,60 @@ + + + + + + + test + + + + + \ No newline at end of file -- Gitee From 628d31639cef974bfa20224257105323cd7b822b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= <3013545725@qq.com> Date: Fri, 14 Oct 2022 04:59:03 +0000 Subject: [PATCH 5/9] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=2044?= =?UTF-8?q?=20=E7=BD=97=E5=90=AF=E6=81=92/=E4=BD=9C=E4=B8=9A/cc.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232/cc.html" | 60 ------------------- 1 file changed, 60 deletions(-) delete mode 100644 "44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/cc.html" diff --git "a/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/cc.html" "b/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/cc.html" deleted file mode 100644 index be924ec..0000000 --- "a/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/cc.html" +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - test - - - - - \ No newline at end of file -- Gitee From 0cd167258895595094834fbc159da6655ef23c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= <3013545725@qq.com> Date: Fri, 14 Oct 2022 04:59:44 +0000 Subject: [PATCH 6/9] =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗启恒 <3013545725@qq.com> --- .../2022-10-14 \344\275\234\344\270\232.html" | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 "44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/2022-10-14 \344\275\234\344\270\232.html" diff --git "a/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/2022-10-14 \344\275\234\344\270\232.html" "b/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/2022-10-14 \344\275\234\344\270\232.html" new file mode 100644 index 0000000..be924ec --- /dev/null +++ "b/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/2022-10-14 \344\275\234\344\270\232.html" @@ -0,0 +1,60 @@ + + + + + + + test + + + + + \ No newline at end of file -- Gitee From a5ae28467b85caced75a20f405716c913fbceb52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= <3013545725@qq.com> Date: Fri, 14 Oct 2022 05:05:18 +0000 Subject: [PATCH 7/9] =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗启恒 <3013545725@qq.com> --- .../2022-10-13 \347\254\224\350\256\260.txt" | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 "44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-10-13 \347\254\224\350\256\260.txt" diff --git "a/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-10-13 \347\254\224\350\256\260.txt" "b/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-10-13 \347\254\224\350\256\260.txt" new file mode 100644 index 0000000..75c02bc --- /dev/null +++ "b/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-10-13 \347\254\224\350\256\260.txt" @@ -0,0 +1,18 @@ +数据类型: +(1)原始型:number,Boolean,string +(2)引用型:数组array,对象Object,函数function +如何弹窗输出:alert(typeof a) +如何弹窗输入:var name = prompt('请输入一个名字') +打印在控制台:var a = 5; console.log(a) +三元运算符 (表达式) ? 满足的时候执行 : 不满足的时候执行 +var a = 90 var result = (a >= 90) ? '优秀' : '良好'; +console.log(result); +条件运算 if +(1表达式:结果是布尔类型){ } +else if(2表达式:结果是布尔类型){ } +else{ } +while : 1.起始值 +2.满足循环的条件:true:可以执行循环体 false:跳出该循环 +3. 循环体 +4.迭代因子 var sum = 0 while (start <= 100) { //2.终止条件 // sum = sum + start; // if (start % 2 != 0) { // sum = sum + start; // } // +continue:跳出当前循环 \ No newline at end of file -- Gitee From 0bb3982e21fa391d46493222bf4e124eeafaa496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= <3013545725@qq.com> Date: Mon, 17 Oct 2022 04:29:18 +0000 Subject: [PATCH 8/9] =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗启恒 <3013545725@qq.com> --- .../2022-10-17 \344\275\234\344\270\232.html" | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 "44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/2022-10-17 \344\275\234\344\270\232.html" diff --git "a/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/2022-10-17 \344\275\234\344\270\232.html" "b/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/2022-10-17 \344\275\234\344\270\232.html" new file mode 100644 index 0000000..f5ae6f3 --- /dev/null +++ "b/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/2022-10-17 \344\275\234\344\270\232.html" @@ -0,0 +1,53 @@ + + + + + + + Document + + + + + \ No newline at end of file -- Gitee From 077425af530e05723bd175ecf0d5867a0314ebbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= <3013545725@qq.com> Date: Mon, 17 Oct 2022 04:29:36 +0000 Subject: [PATCH 9/9] =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗启恒 <3013545725@qq.com> --- .../2022-10-14 \347\254\224\350\256\260.md" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-10-14 \347\254\224\350\256\260.md" diff --git "a/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-10-14 \347\254\224\350\256\260.md" "b/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-10-14 \347\254\224\350\256\260.md" new file mode 100644 index 0000000..e0e8246 --- /dev/null +++ "b/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-10-14 \347\254\224\350\256\260.md" @@ -0,0 +1,17 @@ +1.Switch +2.基本数据类型: +number , +boolean, +string, + null , +undefined var a = '5'+1 // + 其中有一个是字符串, 默认是字符串的连接 var a = '5' // var b = a*2 // + - * 、 %隐式类型转化 var b = -a console.log('类型:' + typeof b + '值:' + b); +查看数据是什么类型 +3.显示数据类型 +NaN : 非数 number Number():转换成数字,失败会变成 NaN false:0 true:1 null:0 undefined:NaN + +parseInt(a,radix): 将(radix)进制 转成 10进制 //var a = 'F' //-->0 1 2 3 4 5 6 7 8 9 A B C D E F //var b = parseInt(a,16) + +String():转成字符串 toFixed(n):保留小数点后n位 +a.toString(radix):将十进制数的a转换成radix进制的数 +isNaN(): 是不是非数,是数字的话--》false 不是数字--》 +true Math: 舍入 ceil(向上取整) floor(向下取整) round(四舍五入) \ No newline at end of file -- Gitee