【新手坑】Cannot read property 'join' of undefined
2020-06-27 05:08
134 查看
报错或者不输出内容问题
今天想研究最大最小宽度碰到了这么个问题,div里面不加内容,会引发这个
Error in event handler for runtime.onMessage: TypeError: Cannot read property ‘join’ of undefined
遇到上面截图的情况,因为做的是一个系统维护页面,只是在body里引用了背景图片,但是项目里提示出错,浏览器开发者模式下提示上面截图的错误,因为有点强迫症,就找解决办法。经过多番测试也未解决问题。。后来忘记在哪发现下面的说法,在body里添加了一个div标签问题就解决了。。。。我内心一万只草泥马奔腾而过。。果然初学者不懂是原罪。
“ 标签,浏览器识别文档类型后,会去找body,但是你body没有内容,所以无法触发鼠标事件,你试试给body里面加个标签,就能触发了;”
原文链接:https://blog.csdn.net/whxlovexue/article/details/103420307
相关文章推荐
- echarts.min.js:25 Uncaught TypeError: Cannot read property 'features' of undefined
- 引用react-native-scrollable-tab-view 之后Cannot read property 'style' of undefined问题
- DataTable插件报错:Uncaught TypeError: Cannot read property 'style' of undefined
- Fix TypeError: Cannot read property 'emit' of undefined after upgrade to 2.0.0 @ionic/cli-plugin-ion
- Uncaught TypeError: Cannot read property 'length' of undefined
- vue 报错 data functions should return an object: 和 Cannot read property '__ob__' of undefined
- Cannot read property ‘msie’ of undefined错误原因以及解决方案
- extjs4:Uncaught TypeError: Cannot read property 'processed' of undefined
- 关于js页面:cannot read property 'call' of undefined
- 字符串切割时报错 TypeError: Cannot read property 'split' of undefined
- Cannot read property 'nodeType' of undefined
- 解决:Cannot read property 'tap' of undefined
- XX商城all.js:329 Uncaught TypeError: Cannot read property 'offse 4000 tWidth' of undefined
- Uncaught TypeError: Cannot read property 'length' of undefined
- 解决vue2.0路由 TypeError: Cannot read property 'matched' of undefined 的错误问题
- Vue-router cannot read property _c of undefined
- stylus compiling bug "Cannot read property 'nodes' of undefined"
- javascript Uncaught TypeError: Cannot read property ... of undefined
- JS —— Uncaught TypeError: Cannot read property 'slice' of undefined 错误
- JS: Cannot read property 'innerHTML' of undefined错误