Blogger Information
Blog 29
fans 0
comment 0
visits 34513
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
js 字符串与数组相互转换
徐郭鹏的博客
Original
640 people have browsed it
//数组转为字符串
a = new Array(a,b,c,d,e); 
b = a.join('-'); //a-b-c-d-e
//字符串转数组
a = 'a,b,c,d,e'; 
b = a.split(','); // Array(a,b,c,d,e)


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post