Uncaught TypeError: Cannot read property 'querySelector' of null

报错。

解决办法:把报错部分的js放到body后面

原文地址:https://www.cnblogs.com/wangxiaoyan/p/9636230.html