<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>
成功