js 合并数组的方法

数组案例:数组 var a = [1,2,3,4];app var b = [5,6,7,8];函数 1,concatcode      js的Array对象提供了一个叫concat()方法,链接两个或更多的数组,并返回结果。对象       var c = a.concat(b);  // c=[1,2,3,4,5,6,7,8];for循环 2, for循环class         遍历其中一
相关文章
相关标签/搜索