摘要: //原数组 var s = [['g','g'],['h','h'],['i','i']]; //要添加的元素 var s1 = ['a','b','c']; //要添加的元素 var s2 = ['d','e','f']; //向['g','g']前面添加元素 s.splice(0,0,s1); 阅读全文
posted @ 2020-06-12 14:15 ssjd 阅读(11127) 评论(0) 推荐(0) 编辑