【JS】Intermediate9:jQuery: Other Tricks

1.DOMContentLoaded

Run JavaScript only when the DOM is loaded and ready (but before stylesheets are fully loaded)

eg:to move elements to a different location in the page, or create new ones.

【JS】Intermediate9:jQuery: Other Tricks

 

2.Load

Wait for the page to fully load - that is, when all stylesheets and images have been downloaded.

 

3.Type checking

【JS】Intermediate9:jQuery: Other Tricks

 

你可能感兴趣的:(jquery)