Home>Article>Web Front-end> Why does jquery write entry functions?
The role of the entry function, waiting for the page to be loaded, has an independent scope,
jQuery entry function The writing method is as follows
Example: