学习echart 的过程中发现

1).t.count is not a function  echart.min.js 报错是因为 echart数据一般类型都是数组。但是实际传递过去的是单值,而不是数组

2).myechart.init 这句话一开始没执行,可能是你写的js早于dom的生成。

3).js将json字符串转化成数组的两种方式:

1.  $.parseJSON(data);

2.   eval("("+datas+")");

4).java后台 将List<user> 转成json对象在转成字符串

JSONArray.fromObject(service.findAll().toString());


猜你喜欢

转载自blog.csdn.net/u010214773/article/details/79677225