【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.

【JS】Intermediate9:jQuery: Other Tricks

3.Type checking

【JS】Intermediate9:jQuery: Other Tricks

上一篇:iOS-分段控制器-基本概念


下一篇:POJ2301+水~~~~~~