首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

js concat步骤

2012-11-23 
js concat方法concat() 方法用于连接两个或多个数组。该方法不会改变现有的数组,而仅仅会返回被连接数组的

js concat方法
concat() 方法用于连接两个或多个数组。

该方法不会改变现有的数组,而仅仅会返回被连接数组的一个副本。

通过下面的例子很容易看明白:


结果:
tempList:a
tempList:b
tempList:c
tempList:d
tempList2:e
tempList2:f
tempList2:g
tempList2:h
tempList3:a
tempList3:b
tempList3:c
tempList3:d
tempList3:e
tempList3:f
tempList3:g
tempList3:h

热点排行
Bad Request.