1 2 3 4 5 6 7 8 9 10 11 12 13
| [LOG]: "判断数组长度 true" [LOG]: "从数组尾部添加和删除元素 1,2,3" [LOG]: "从数组头部添加和删除元素 4,1,2,3" [LOG]: "从原数组区间获得一个新数组 1,2" [LOG]: "原数组 4,1,2,3 删除下标 1 位置的 2 个元素后得到的数组 1,2, 原数组 4,3" [LOG]: "在数组 4,1,2,3 中被删掉的元素 1,2 追加新的元素后 4,11,22,3" [LOG]: "元素 22 在数组 22,33,4,11,22,3 中的下标为 0" [LOG]: "元素 22 在数组 22,33,4,11,22,3 中 1下标位置起的下标为 4" [LOG]: "数组 22,33,4,11,22,3 字典排序后 11,22,22,3,33,4" [LOG]: "数组 11,22,22,3,33,4 元组 11 22,即按照下标位置展开到指定变量" [LOG]: "将字符串 a,b,c,d,e,f,g 按照分隔符 , 分割为数组 a,b,c,d,e,f,g,长度为 7" [LOG]: "将数组 11,22,22,3,33,4 以分隔符 % 拼接到一起 11%22%22%3%33%4" [LOG]: "数组如果不重新赋值最好使用 const 声明"
|