- Because js is an interpreted language, so the translation is progressive, so the line of code is interpreted contained in the reference object (such as: Style), etc. must be in before the trip.
- Code $ (function () {}) it is performed only when the page will be loaded.
- $ () On (event, target, function);. This target is triggered only when the event will be interpreted so do not worry about the undefine.
html loading introduced with the execution order and js
Guess you like
Origin www.cnblogs.com/xiaoyeyiran/p/11583393.html
Recommended
Ranking