From f6e1dcb7c222b6cbd9868274821c00de2ae3db37 Mon Sep 17 00:00:00 2001 From: lzlk <1930069369@qq.com> Date: Tue, 18 Oct 2022 18:10:43 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=AC=A1=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2022-10-17\344\275\234\344\270\232.html" | 65 +++++++++++++++++++ ...4\350\256\260 \346\225\260\347\273\204.md" | 33 ++++++++++ 2 files changed, 98 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-10-17\347\254\224\350\256\260 \346\225\260\347\273\204.md" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" new file mode 100644 index 0000000..ef769bd --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" @@ -0,0 +1,65 @@ + + + + + + + Document + + + + + + \ No newline at end of file diff --git "a/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-10-17\347\254\224\350\256\260 \346\225\260\347\273\204.md" "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-10-17\347\254\224\350\256\260 \346\225\260\347\273\204.md" new file mode 100644 index 0000000..6e11aab --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-10-17\347\254\224\350\256\260 \346\225\260\347\273\204.md" @@ -0,0 +1,33 @@ + console.log(str.substr(4,6)); + console.log(str.substring(4,0)); // 如果start>end,交换顺序 + console.log(str.trim()); //去掉两边的空格,中间穿插的不可以 + + console.log(str.includes('Sc'));//返回true表示找得到,返回false表示找不到 + console.log(str.indexOf('Sc',6)); //返回的是第一个匹配字符串的起始下标,如果找不到返回-1 + console.log(str.slice(4,0)); //截取,返回对应长度的字符串 + +``` + // 通过冒泡排序, 从小到大 + for(let i = 0; iarr[j+1]){ + [arr[j],arr[j+1]] = [arr[j+1],arr[j]] + } + } + } +``` + +``` +重点:splice(index,delet,insert):index开始的下标,delet为删除多少个元素,insert中可以写需要添加的元素 +``` + + // arr.pop() //删除最后一个元素 + // arr.push(4,5,6) //在数组末尾添加元素 + // arr.shift() //删除第一个元素 + // arr.unshift(4,5,6) //往数组头部添加元素 + +``` +reverse():反转数组 +sort():根据字符串顺序排序,不是按照数字大小排序 +``` + -- Gitee From a913d37fe2871a5535d6b9573bcd527321c74538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Tue, 18 Oct 2022 12:57:10 +0000 Subject: [PATCH 2/7] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=2007?= =?UTF-8?q?=20=E5=BB=96=E6=B2=BB=E5=85=88/=E4=BD=9C=E4=B8=9A/2022-10-17?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2022-10-17\344\275\234\344\270\232.html" | 65 ------------------- 1 file changed, 65 deletions(-) delete mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" deleted file mode 100644 index ef769bd..0000000 --- "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - Document - - - - - - \ No newline at end of file -- Gitee From 90a9540d8070b2d19a12b44fc0b73a3068aa08e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Tue, 18 Oct 2022 12:57:21 +0000 Subject: [PATCH 3/7] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=AC=A1=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- .../2022-10-17\344\275\234\344\270\232.html" | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" new file mode 100644 index 0000000..5ef4bf6 --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" @@ -0,0 +1,65 @@ + + + + + + + Document + + + + + + \ No newline at end of file -- Gitee From e81c77dbd3afeee181697925431e4201baee90d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Tue, 18 Oct 2022 13:08:23 +0000 Subject: [PATCH 4/7] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=2007?= =?UTF-8?q?=20=E5=BB=96=E6=B2=BB=E5=85=88/=E4=BD=9C=E4=B8=9A/2022-10-17?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2022-10-17\344\275\234\344\270\232.html" | 65 ------------------- 1 file changed, 65 deletions(-) delete mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" deleted file mode 100644 index 5ef4bf6..0000000 --- "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - Document - - - - - - \ No newline at end of file -- Gitee From 4485bb7ee52daa7a235446c5d2e93898bb279098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Tue, 18 Oct 2022 13:08:35 +0000 Subject: [PATCH 5/7] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=AC=A1=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- .../2022-10-17\344\275\234\344\270\232.html" | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" new file mode 100644 index 0000000..2dfb58a --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" @@ -0,0 +1,67 @@ + + + + + + + Document + + + + + + \ No newline at end of file -- Gitee From aca5f0642081489cb075b231b9f86faf6f6ecc5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Tue, 18 Oct 2022 13:11:43 +0000 Subject: [PATCH 6/7] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=2007?= =?UTF-8?q?=20=E5=BB=96=E6=B2=BB=E5=85=88/=E4=BD=9C=E4=B8=9A/2022-10-17?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2022-10-17\344\275\234\344\270\232.html" | 67 ------------------- 1 file changed, 67 deletions(-) delete mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" deleted file mode 100644 index 2dfb58a..0000000 --- "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - Document - - - - - - \ No newline at end of file -- Gitee From db17fcf62f07acd119cc1120c94cd7f3e1f04112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Tue, 18 Oct 2022 13:11:57 +0000 Subject: [PATCH 7/7] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=AC=A1=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- .../2022-10-17\344\275\234\344\270\232.html" | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" new file mode 100644 index 0000000..86d19fe --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-10-17\344\275\234\344\270\232.html" @@ -0,0 +1,67 @@ + + + + + + + Document + + + + + + \ No newline at end of file -- Gitee