topic description:
"the Art of Javascript DOM programming"
Chapter 5 topic: separating javascript
the source of the topic and its own ideas:
packages the js code in the prepareLinks function and adds this function to the onload event of the window object. In this way, Javascript and HTML are separated to achieve smooth degradation.
related code:
HTML: