1. JS error solution
this is generally caused by the node you obtained does not exist
the possible reason for this situation: when you get this node, the node has not been loaded. For example, your JS is written in the head, and you can’t get a node in the body. The solution to this situation: put the JS code behind
This article is shared on the blog “lxw1844912514” (CSDN).