s2.push('value:'+sql8[i].ZJ+' name:'+sql8[i].CARGO_KIND_NAME+' itemStyle: {normal: {color:'+ a +'}}');
结果为 "value:19586 name:5.矿建材料 itemStyle: {normal: {color:#2095f2}}"
根本目的是想将结果变为
"value:19586 name:'5.矿建材料' itemStyle: {normal: {color:#2095f2}}"
s2.push('value:'+sql8[i].ZJ+' name:'+sql8[i].CARGO_KIND_NAME+' itemStyle: {normal: {color:'+ a +'}}');
结果为 "value:19586 name:5.矿建材料 itemStyle: {normal: {color:#2095f2}}"
根本目的是想将结果变为
"value:19586 name:'5.矿建材料' itemStyle: {normal: {color:#2095f2}}"
三个单引号就是一个合法的单引号