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() { // 基於準備好的
相關文章
相關標籤/搜索