JavaScript
JavaScript Array(数组) 对象
合并三个数组 - concat()
源代码:
点击运行 »
<script> var parents = ["Jani", "Tove"]; var brothers = ["Stale", "Kai Jim", "Borge"]; var children = ["Cecilie", "Lone"]; var family = parents.concat(brothers, children); document.write(family); </script>
运行结果:
点击运行 »