From 38e352ce4979e8282cd3412cccf89d1138b4401a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= <3013545725@qq.com>
Date: Tue, 18 Oct 2022 15:41:58 +0000
Subject: [PATCH 1/2] =?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-18 \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-18 \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-18 \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-18 \344\275\234\344\270\232.html"
new file mode 100644
index 0000000..07eb514
--- /dev/null
+++ "b/44 \347\275\227\345\220\257\346\201\222/\344\275\234\344\270\232/2022-10-18 \344\275\234\344\270\232.html"
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
\ No newline at end of file
--
Gitee
From 70baa79273367a77bbed3991e7c290579358fb98 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=BD=97=E5=90=AF=E6=81=92?= <3013545725@qq.com>
Date: Tue, 18 Oct 2022 15:42:18 +0000
Subject: [PATCH 2/2] =?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.md" | 41 +++++++++++++++++++
1 file changed, 41 insertions(+)
create mode 100644 "44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-10-17 \344\275\234\344\270\232.md"
diff --git "a/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-10-17 \344\275\234\344\270\232.md" "b/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-10-17 \344\275\234\344\270\232.md"
new file mode 100644
index 0000000..04542d5
--- /dev/null
+++ "b/44 \347\275\227\345\220\257\346\201\222/\347\254\224\350\256\260/2022-10-17 \344\275\234\344\270\232.md"
@@ -0,0 +1,41 @@
+数组 : 引用型(对象 增删改查),基本数据类型(值类型)
+增:
+ arr[10] = 'java'
+
+ 查 : arr[index]
+
+ 改
+ arr[1] = "五"
+
+ 删:
+ delete arr[0];
+
+
+ 增加: push, pop , shift, unshift 链表 队列
+ arr.pop() //删除最后一个元素
+ arr.push(4,5,6) //在数组末尾添加元素
+ arr.shift() //删除第一个元素
+ arr.unshift(4,5,6) //往数组头部添加元素
+排序:sort():根据字符串顺序排序,不是按照数字大小排序
+
+reverse()反转数组
+
+splice():嫁接(裁掉不需要,需要的接上去)
+delete count
+
+ splice(index,delecount,insertvalue):下标index开始,删除delecount个元素
+ 再添加inservalue
+ 只删除, 替换, 添加
+ arr.splice(3,0,'嫁','接',666); //替换作用
+
+
+ console.log(String.prototype);
+ console.log(str.toUpperCase()); 大小写转换
+
+ console.log(str.substr(4,6));
+ console.log(str.substring(4,0)); //[4,6) 如果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)); //截取,返回对应长度的字符串
\ No newline at end of file
--
Gitee