Recently I used jquery and learned it by myself. Here are some notes I made when I got started (refer to 3 wschool ). There are also some simple exercises written by myself. I. Three different methods for loading jquery files. 1. local file (to download the js file in advance) Load & lt; scrip... syntaxHighlighter. all (
Recently I used jquery and learned it by myself. Here are some notes I made when I got started (refer to 3 wschool ). Some simple exercise code written by myself
I. Three different methods for loading jquery files
1. Local file (download the js file in advance)
3. Load Microsoft CDN
Ii. Use of jquery (Recommended Format)
1. Place all jQuery code in the event handler Function
2. Place all event processing functions in the document-ready event processor.
3. If there is a large amount of jQuery code in a single. js file
The following code (save this code as an html extension file to see its effect ):