日期:2014-05-16 浏览次数:20325 次
<html>
<body>
<script type="text/javascript">
var arr = new Array(3);
arr[0] = "George"
arr[1] = "John"
arr[2] = "Thomas"
document.write(arr.join());
document.write("<br />");
document.write(arr.join("."));
</script>
</body>
</html>
?
?
?
结果:
?
?
George,John,Thomas
George.John.Thomas