您浏览器的JS被禁用了,请开启JS。
js字符串转数组。
js字符串转数组
代码:
var str = 'ab,cd';
var a = str.split(',');
运行结果:
// [ab, cd]