2020年8月27日

数组的使用方法

摘要: // 1、添加 、删除 // push arr1.push(10); console.log(arr1); //[2, 3, 5, 6, 7, 2, 1, 10] // pop arr1.pop(); console.log(arr1); //[2, 3, 5, 6, 7, 2, 1] // uns 阅读全文

posted @ 2020-08-27 21:13 cx125 阅读(132) 评论(0) 推荐(0) 编辑

字符串

摘要: // 1、增 // concat() var string2 = string1.concat('ldq'); console.log(string2); //guoJunQiangldq // 删除 // slice(start,end) console.log(string1.slice(0, 阅读全文

posted @ 2020-08-27 21:12 cx125 阅读(69) 评论(0) 推荐(0) 编辑

导航