html,js 打开时出现 Uncaught TypeError: Cannot read property 'addEventListener' of null at register.js:24错误的解决方法

这可能是因为把连接js的放在开头了,<script src="../js/register.js"></script>把这个<script>标签放在后面试试

原文地址:https://www.cnblogs.com/XiaXiaHaHa/p/12829958.html