在javaScript中拼接JSONvar jsonStr = '['for ( var j = 0; j < selectRows.length; j++) { jsonStr+= '{';
在javaScript中拼接JSON
var jsonStr = '['for ( var j = 0; j < selectRows.length; j++) { jsonStr+= '{'; jsonStr+="id:"; jsonStr+=selectRows[j].id; jsonStr +='}' if(j!=selectRows.length-1){ jsonStr+=',' }}jsonStr += ']';```