摘要: 1.向数组添加数据 // push()向数据末尾添加数据,并返回添加数据后的数组的长度 var arr = [1,2,3] console.log(arr.push(4), arr)//4 [ 1, 2, 3, 4 ] //unshift()向数据起始位置添加数据,并返回添加数据后的数组的长度 va 阅读全文
posted @ 2018-08-31 09:49 时光凉忆 阅读(379) 评论(0) 推荐(0) 编辑