JavaScript Tutorial/Array/toString
Версия от 18:52, 25 мая 2010; (обсуждение)
Array.toString()
The toString() method returns one string that contains all the elements in the array separated with commas.
The toString() method is used to convert an array to a string when the array is used in string context.
The following example forces JavaScript to Use an Array"s toString() Method
<html>
<script language="JavaScript">
<!--
colors = new Array("Blue","Green","Red");
document.write(colors);
-->
</script>
</html>