87,964
社区成员
发帖
与我相关
我的任务
分享
if (data != null && data != "" && data != undefined) {
var json_list = eval('(' + data + ')');
var douhao = null;
var signedDate = "";
var count = "";
for (i = 0; i < json_list.length; i++) {
if (i != json_list.length - 1) {
douhao = ",";
} else {
douhao = "";
}
signedDate += json_list[i].SignedDate + douhao;
count += json_list[i].Count + douhao;
}
$("#div_show_list").html(html);
var obj = signedDate.split(',');
var mon = count.split(',');
alert(obj + "," + mon);
option.xAxis[0].data = obj;
option.series[0].data = mon;
barChart.hideLoading();
barChart.setOption(option);
}
这是AJAX里面的一段代码,这段代码就是重新给myChar赋值.