技术笔记
当前位置:首页 > jQuery > concat连接数组
concat连接数组
 moons   2020-07-27 14:11:48   135
专栏分类: javascript

<script type="text/javascript">
var arr = new Array(3)
arr[0] = "George"
arr[1] = "John"
arr[2] = "Thomas"
var arr2 = new Array(3)
arr2[0] = "James"
arr2[1] = "Adrew"
arr2[2] = "Martin"
document.write(arr.concat(arr2))
</script>
Copyright © mos360.cn By Moons Soft Studio 百度统计