From d2cc04ba427cd97029b353a661702adca1657837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=91=AB=E6=B6=9B?= <10033779+Q-00817@user.noreply.gitee.com> Date: Tue, 18 Oct 2022 14:43:00 +0000 Subject: [PATCH 1/8] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2045=E9=A9=AC=E9=91=AB?= =?UTF-8?q?=E6=B6=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "45\351\251\254\351\221\253\346\266\233/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "45\351\251\254\351\221\253\346\266\233/.keep" diff --git "a/45\351\251\254\351\221\253\346\266\233/.keep" "b/45\351\251\254\351\221\253\346\266\233/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 61b645483c6b4596f415f330da11ab21aff818f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=91=AB=E6=B6=9B?= <10033779+Q-00817@user.noreply.gitee.com> Date: Tue, 18 Oct 2022 14:43:20 +0000 Subject: [PATCH 2/8] =?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 "45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/.keep" diff --git "a/45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/.keep" "b/45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 0ad0605f6f79c3ed4f838d7a04a4a191675bcdf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=91=AB=E6=B6=9B?= <10033779+Q-00817@user.noreply.gitee.com> Date: Tue, 18 Oct 2022 14:43:33 +0000 Subject: [PATCH 3/8] =?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 "45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/.keep" diff --git "a/45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/.keep" "b/45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 4f33620f36e70c0e62b67881c2a41ee152b81cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=91=AB=E6=B6=9B?= <1722781630@qq.com> Date: Tue, 18 Oct 2022 22:44:41 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E5=92=8C=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1.html" | 70 +++++++++++++++++++ ...3\345\236\213\347\254\224\350\256\260.txt" | 7 ++ 2 files changed, 77 insertions(+) create mode 100644 "45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/2022.10.13\346\225\260\346\215\256\347\261\273\345\236\213\344\275\234\344\270\232/1.html" create mode 100644 "45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/2022.10.13\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260/\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260.txt" diff --git "a/45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/2022.10.13\346\225\260\346\215\256\347\261\273\345\236\213\344\275\234\344\270\232/1.html" "b/45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/2022.10.13\346\225\260\346\215\256\347\261\273\345\236\213\344\275\234\344\270\232/1.html" new file mode 100644 index 0000000..eb281de --- /dev/null +++ "b/45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/2022.10.13\346\225\260\346\215\256\347\261\273\345\236\213\344\275\234\344\270\232/1.html" @@ -0,0 +1,70 @@ + + + + + + + Document + + + + + \ No newline at end of file diff --git "a/45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/2022.10.13\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260/\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260.txt" "b/45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/2022.10.13\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260/\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260.txt" new file mode 100644 index 0000000..e3ff0a2 --- /dev/null +++ "b/45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/2022.10.13\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260/\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260.txt" @@ -0,0 +1,7 @@ +#### 数据类型: + +(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; // } // 4.迭代因子 //2.continue:跳出当前循环 \ No newline at end of file -- Gitee From c555ba5cac413201c1fee91537624c40f38d4abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=91=AB=E6=B6=9B?= <1722781630@qq.com> Date: Tue, 18 Oct 2022 22:45:40 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=AC=A1=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E5=92=8C=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2.html" | 64 +++++++++++++++++++ ...3\345\236\213\347\254\224\350\256\260.txt" | 6 ++ 2 files changed, 70 insertions(+) create mode 100644 "45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/2022.10.14\346\225\260\346\215\256\347\261\273\345\236\213\344\275\234\344\270\232/2.html" create mode 100644 "45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/2022.10.14\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260/\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260.txt" diff --git "a/45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/2022.10.14\346\225\260\346\215\256\347\261\273\345\236\213\344\275\234\344\270\232/2.html" "b/45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/2022.10.14\346\225\260\346\215\256\347\261\273\345\236\213\344\275\234\344\270\232/2.html" new file mode 100644 index 0000000..e329189 --- /dev/null +++ "b/45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/2022.10.14\346\225\260\346\215\256\347\261\273\345\236\213\344\275\234\344\270\232/2.html" @@ -0,0 +1,64 @@ + + + + + + + 555 + + + + + + \ No newline at end of file diff --git "a/45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/2022.10.14\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260/\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260.txt" "b/45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/2022.10.14\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260/\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260.txt" new file mode 100644 index 0000000..8264c32 --- /dev/null +++ "b/45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/2022.10.14\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260/\346\225\260\346\215\256\347\261\273\345\236\213\347\254\224\350\256\260.txt" @@ -0,0 +1,6 @@ +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 \ No newline at end of file -- Gitee From a2144c7d4e5258f29e86f299227044eddb97e602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=91=AB=E6=B6=9B?= <1722781630@qq.com> Date: Tue, 18 Oct 2022 22:50:50 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=AC=A1=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E5=92=8C=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../3.html" | 70 +++++++++++++++++++ .../\346\225\260\347\273\204.txt" | 51 ++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 "45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/2022.10.17\346\225\260\347\273\204\344\275\234\344\270\232/3.html" create mode 100644 "45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/2022.10.17\346\225\260\347\273\204\347\254\224\350\256\260/\346\225\260\347\273\204.txt" diff --git "a/45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/2022.10.17\346\225\260\347\273\204\344\275\234\344\270\232/3.html" "b/45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/2022.10.17\346\225\260\347\273\204\344\275\234\344\270\232/3.html" new file mode 100644 index 0000000..1b8feb1 --- /dev/null +++ "b/45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/2022.10.17\346\225\260\347\273\204\344\275\234\344\270\232/3.html" @@ -0,0 +1,70 @@ + + + + + + + Document + + + + + \ No newline at end of file diff --git "a/45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/2022.10.17\346\225\260\347\273\204\347\254\224\350\256\260/\346\225\260\347\273\204.txt" "b/45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/2022.10.17\346\225\260\347\273\204\347\254\224\350\256\260/\346\225\260\347\273\204.txt" new file mode 100644 index 0000000..076210d --- /dev/null +++ "b/45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/2022.10.17\346\225\260\347\273\204\347\254\224\350\256\260/\346\225\260\347\273\204.txt" @@ -0,0 +1,51 @@ +# 数组 + +数组 : 引用型(对象 增删改查),基本数据类型(值类型) + +增:arr[目标下标] = '元素'(中间会产生无用数据) + + push:在数组末尾添加元素 + + unshift:往数组头部添加元素 + +删:delete arr[目标下标] + + pop:删除最后一个元素 + + shift:删除第一个元素 + +改:arr[目标下标]='元素' + +排序:sort():根据字符串顺序排序,不是按照数字大小排序 arr.sort() + +冒泡排序: 通过冒泡排序, 从小到大 从大到小 + + for(let i = 0; iarr[j+1]){ + + [arr[j],arr[j+1]] = [arr[j+1],arr[j]] + + } + + } + + } + +反转函数:reverse 将数组中的元素进行反转 + +嫁接:splice(裁掉不需要,需要的接上去) 跟替换差不多 + +splice(index,delecount,insertvalue):下标index开始,删除delecount(几)个元素 + +再添加 inservalue + +数组解构 + +const arr =[1,2,3,4] + +var [a,b,c,d]=arr 等于 (var a = arr[0]; var b = arr[1]; var c = arr[2]; var d=arr[3]) + +var[a,...args]=arr 等于(arr[2,3,4]) \ No newline at end of file -- Gitee From a40b25f335dbfbcb7012b1f3e2ce80fb39ef4f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=91=AB=E6=B6=9B?= <10033779+Q-00817@user.noreply.gitee.com> Date: Tue, 18 Oct 2022 15:12:37 +0000 Subject: [PATCH 7/8] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=2045?= =?UTF-8?q?=E9=A9=AC=E9=91=AB=E6=B6=9B/=E7=AC=94=E8=AE=B0/.keep?= 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(-) delete mode 100644 "45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/.keep" diff --git "a/45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/.keep" "b/45\351\251\254\351\221\253\346\266\233/\347\254\224\350\256\260/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 5cb595a0ac558bbc7bb596519d05304d6499f4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=91=AB=E6=B6=9B?= <10033779+Q-00817@user.noreply.gitee.com> Date: Tue, 18 Oct 2022 15:12:51 +0000 Subject: [PATCH 8/8] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=2045?= =?UTF-8?q?=E9=A9=AC=E9=91=AB=E6=B6=9B/=E4=BD=9C=E4=B8=9A/.keep?= 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(-) delete mode 100644 "45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/.keep" diff --git "a/45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/.keep" "b/45\351\251\254\351\221\253\346\266\233/\344\275\234\344\270\232/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee