ERROR:cannot read property 'getAttribute' of null 报错处理 本人项目中用到了ng-cli、echart 解决:html中定义的图表id与.ts中引用的id不一致(粘贴复制的锅) 如: