2013年8月3日 星期六

javascript string concat

<html>
<body>
<script type="text/javascript">
var arr1 = 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(arr1.concat(arr2))
</script>
</body>
</html>

沒有留言:

張貼留言