Cannot read property ‘getAttribute‘ of null

我在使用echarts时,按官网的例子写的,却出现了这个错误: 具体代码是这样的:html // html <div id="main" style="width: 600px;height:400px;"></div> //js ngOnInit() : void{ this.getEcharts(); } async getEcharts() { // 基于准备好的
相关文章
相关标签/搜索