日期:2014-05-16 浏览次数:20315 次
var aa = '"whe":"%20and%20s7%20in(1,2,3,4,5,40,39,38,37,36)%20","FDSFS":"FSS,SS"';
aa = aa.replace(/(?:\")(\,)+(?:\")/g,"\"\"$1\"\"").split(/\"\,\"/);
console.log(aa[0]);
console.log(aa[1]);
console.log(aa.length);
var $a = '"whe":"%20and%20s7%20in(1,2,3,4,5,40,39,38,37,36)%20", "FDSFS":"FSS,SS"';
var $r = /, /;
var $b = $a.split($r);
var s= '"whe":"%20and%20s7%20in(1,2,3,4,5,40,39,38,37,36)%20","FDSFS":"FSS,SS"';
var x=s.split(/\",\"/g);
alert(x[0]+"\"");
alert("\""+x[1]);