JavaScript method for all elements in a join function connection Group
This article mainly introduces the method of using JavaScript to join all elements in the number of connections of the function. The example analyzes the use skills of the join function in javascript, which has some reference value. For more information, see
This example describes how to use JavaScript to join all elements in a function connection group. Share it with you for your reference. The specific implementation method is as follows:
?
1 2 3 4 5 |
<Script type = "text/javascript"> Var days = ["Sunday", "Monday", "Tuesday", "Wednesday ", "Thursday", "Friday", "Saturday"]; Document. write ("days:" + days. join (",")); </Script> |
The output result is as follows:
Days: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
I hope this article will help you design javascript programs.