Home > Web Front-end > JS Tutorial > body text

Script to combine javascript arrays into strings_javascript skills

WBOY
Release: 2016-05-16 19:07:37
Original
1527 people have browsed it

In some programs, you may need to combine arrays into strings, such as processing var aArray = ["a", "b", "c"]; into string form. There are two methods here. Of course, if you have a better method, don’t forget to leave a message to me.
First type:
aArray.toString()
Second type:
aArray ""
Demo:


[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template