echart渲染 Cannot read properties of undefined (reading 'getAttribute')
时间: 2023-09-27 20:08:09 浏览: 104
这个错误是由于尝试读取未定义的属性'getAttribute'导致的。在报错中提到的错误信息"Cannot read properties of undefined (reading 'getAttribute')"意味着在某个地方使用了getAttribute()方法,但是该方法所依赖的元素未定义或不可用。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Echars 报错: Error in created hook: “Cannot read properties of undefined (reading ‘getAttribute‘)...](https://blog.csdn.net/weixin_57529171/article/details/124878986)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [js中的getAttribute方法使用示例](https://download.csdn.net/download/weixin_38617602/13044321)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文