标签:label 签证 res 方法 split sdc span bsp 字符
var res =‘acsdcsd‘;
console.log(res)
console.log(res.split(‘,‘))
var res1=‘{label: "线路",data: 10 }, {label: "酒店",data: 20 }, {label: "租车",data: 30 }, {label: "签证",data: 20 }, {label: "门票",data: 10 }, {label: "其它",data: 10 }‘;
console.log(res1.split(‘,‘))
标签:label 签证 res 方法 split sdc span bsp 字符
原文地址:http://www.cnblogs.com/huangzhenhui/p/7457600.html