In some programs, you might want to combine array groups into strings, such as the var aarray = ["A", "B", "C"], and the form of a string. Here are two ways, of course, if you have a better way, don't forget to leave a message to me.
First type:
aarray.tostring ()
The second type:
Aarray + ""
Demonstrate:
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01//en" "HTTP://WWW.W3.ORG/TR/HTML4/STRICT.DTD" > <ptml> <pead> ; <meta http-equiv= "Content-type" content= "text/html; Charset=iso-8859-1 "/> <title>js array Group synthesis string </title> <script language=" JavaScript "type=" t Ext/javascript "> var aarray = [" A "," B "," C "]; document.write (typeof (Aarray) + ""); document.write (typeof (Aarray.tostring ()) + ""); document.write (typeof (Aarray + "")); </script> </pead> <body> </body> </ptml>
[ctrl+a All selected note: If you need to introduce external JS need to refresh to perform]