Using jQuery to write JavaScript scripts is like using Delphi to write Windows programs. It is not more powerful, but easier to use.
I plan to comprehensively browse and test the syntax of jQuery first, and gain insight into its logic and ideas; finally try Using jQuery in Delphi is probably much more convenient than using MSHTML.pas.
Official site: http://jquery.com/
Chinese document: http ://jquery-api-zh-cn.googlecode.com/
Download address: http://docs.jquery.com/Downloading_jQuery
jQuery library is A js file has versions with different specifications:
To view the source code, you should use: standard version (such as: jquery-1.4.2.js)
In actual applications, you should use: min version (such as: jquery- 1.4.2.min.js);
You can use the vsdoc version with code prompts when editing in VS, but the latest version of vsdoc that can be found is 1.4.1, which is also acceptable.
PS: The following running code is added with jquery. After running, refresh it and you can see the effect.
should be called in the page before use; test page: