Echarts 报错 t is null

118 阅读1分钟

原因:

1.Ecarts.init里渲染的dom,在页面中找不到,名称错误或DOM不存在。

2.option里的值为空或变量空错误

解决办法:

1.筛查 echarts.init里的dom在页面是否存在
2.检查option