Uncaught TypeError: Cannot read property 'addEventListener' of null
Posted chargeworld
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Uncaught TypeError: Cannot read property 'addEventListener' of null相关的知识,希望对你有一定的参考价值。
<script type="text/javascript"> var body1=document.getElementById(‘#body‘) </script>
错误提示:
Uncaught TypeError: Cannot read property ‘addEventListener‘ of null
修改代码如下:
<script type="text/javascript"> var body1=document.getElementById(‘body‘) </script>
成功
以上是关于Uncaught TypeError: Cannot read property 'addEventListener' of null的主要内容,如果未能解决你的问题,请参考以下文章
如何解决问题:Uncaught (in promise) TypeError: promisify is not a function?
Uncaught TypeError: Cannot redefine property: $router
Uncaught TypeError: o.block is not a function
Laravel 5.1 和 Vue.js - 21678 Uncaught (in promise) TypeError: Cannot read property 'data' of null
jQuery Post blob 对象给出 Uncaught TypeError: Illegal invocation