使用Echart报错Cannot read property ‘getAttribute‘ of undefined
项目中使用Echart报错,百度结果说生命周期性错误,解决办法是
mounted() {this.$nextTick(() => {this.drawLine();});}
此方法可以解决百分之90的错误,还有百分之十是因为
在mounted里写nexttick 结果发现 打印结果还是 没有找到继续报错,
最后 发现, 写Echart的盒子 不能放到 for 循环里面 不然 这个盒子 ref是找不到他的,需要放到for 循环外面。
最后 打印结果 盒子成功找到。
使用Echart报错Cannot read property ‘getAttribute‘ of undefined相关推荐
- vue 报错 Cannot read property ‘__ob__‘ of undefined的解决方法
vue 报错 Cannot read property '__ob__' of undefined的解决方法 参考文章: (1)vue 报错 Cannot read property '__ob__' ...
- 事件监听一直报错Cannot set property 'display' of undefined
为什么80%的码农都做不了架构师?>>> css ↓ .wechatBtn {position: relative;} .wechat {position: absolute; ...
- DateTimePicker 日期时间选择器报错 Cannot read property ‘getHours‘ of undefined, 无法选中`[__ob_: observer__]`时做判断
我在一次开发中遇到了这个情况:使用DateTimePicker 日期时间选择器,出现无法选中, 报错 Cannot read property 'getHours' of undefined, 这个原 ...
- Vue开启Gzip打包异常:webpack打包报错Cannot read property ‘emit‘ of undefined
Vue开启Gzip打包异常:webpack打包报错Cannot read property 'emit' of undefined 相关代码 const CompressionPlugin = req ...
- vue echarts使用map地图 引入china.js报错Cannot read property ‘echarts’ of undefined
下载china.js导入项目中引入,会报错Cannot read property 'echarts' of undefined import Echarts from "echarts&q ...
- uniapp 小程序报错 Cannot read property ‘forceUpdate‘ of undefined
uniapp 小程序报错 Cannot read property 'forceUpdate' of undefined 1.问题: 解决:配置小程序的ID manifest.json的文件
- js报错- cannot set property xxx of undefined
case1 报错代码 quizList[index] = currentQuiz; quizList[index].learningItem = item; 报错内容 Cannot read prop ...
- vue 报错 Cannot read property ‘_wrapper‘ of undefined
vue项目中,使用了各种插件和ui库,有时候会出现 Cannot read property '_wrapper' of undefined 这样的报错,一开始还以为是引用的插件报错, 其实是自定义 ...
- cesium CLAMP_TO_GROUND 报错 Cannot read property ‘globe‘ of undefined
billboardCollection 需要添加heightReference: Cesium.HeightReference.CLAMP_TO_GROUND var viewer = new Ces ...
最新文章
- 手机群发短信脚本python
- php人员权限管理(RBAC)
- 好物推荐:notion想同步什么东西,直接在这里写就可以,不用再发消息,真棒
- Boost:双图bimap与range范围的测试程序
- Git——跟踪或取消跟踪文件
- 帧内16*16模式的宏块数据传输顺序
- coreData mapView #include
- thuinkphp5 input('post.arr1')接收数组出现:variable type error:array
- superoneclick 2.2_一季度食品监督抽检2.2%不合格:农兽药残留超标等系主因
- PeriodicWave
- 基于jQuery UI CSS Framework开发Widget
- MTK平台download烧录大全
- C++之详解coredump
- Android Dialog
- 计算机专硕考数一英一,专硕难度升级!改考数一英一,这所近2.3万人报考的热门高校大改...
- SpringBoot笔记通俗易懂版
- 下载地址转化(下载地址不是自己项目中的地址)
- 朋友推荐了一款刷题神器
- Automake 使用手册
- “风暴”洗礼后,暴风冯鑫和迅雷陈磊会怎样回顾这内忧外患一年
热门文章
- 淘宝U站引流方法 教你淘宝U站推广流量如何自然来!
- 世界超级计算机比赛,世界大学生超级计算机竞赛 浙大打破世界纪录
- 肖 sir_就业课__014python讲解
- 新手必须学习ABAP内容
- AS实现联系人功能 Contact
- 进销存记账软件十大品牌合集,看看哪一款适合你
- 信安小白,一篇博文讲明白上传漏洞——获得shop靶机的Webshell
- Android线程间通信
- 【限速标志识别】形态学限速标志识别【含GUI Matlab源码 1142期】
- C语言中标识符不能用的符号,【单选题】按照C语言规定的用户标识符命名规则,( )不能出现在标识符中.
A. 大写字母
B. 任意标点符号
C. 数字字符
D. 下划线...