1.字符串转数组
var str = ‘ab+c+de‘; var a = str.split(‘+‘); // [ab, c, de] var b = str.split(‘‘); //[a, b, +, c, +, d, e]
2.
js数组,字符串,对象常用方法
原文:https://www.cnblogs.com/xu-nian-qin/p/11124985.html