JavaScript
JavaScript Array(数组) 对象
合并两个数组 - concat()
源代码:
点击运行 »
<script> var hege = ["Cecilie", "Lone"]; var stale = ["Emil", "Tobias", "Linus"]; var kai = ["Robin"]; var children = hege.concat(stale, kai); document.write(children); </script>
运行结果:
点击运行 »