摘要: 数组转字符串 var a, b; a = new Array(0,1,2,3,4); b = a.join("-"); //"0-1-2-3-4" 字符串转数组 var s = "abc,abcd,aaa"; ss = s.split(",");// 在每个逗号(,)处进行分解 ["abc", "abcd", "aaa"] var s1 = "helloworld"; s... 阅读全文
posted @ 2018-08-29 16:11 conglvse 阅读(287) 评论(0) 推荐(0) 编辑