Cannot read property 'appendChild' of null

1. js error reporting solution
This is generally caused by the fact that the node you obtained does not exist.
The possible reason for this: When you get this node, the node has not been loaded, for example: your JS is written in the head, and you can take a node in the body, which is not available at this time. Solution for this situation: put JS code behind
write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325771080&siteId=291194637