Home > Article > Web Front-end > How to download and quote jquery
How to download and quote jQuery: First enter the jQuery official website; then find the download button on the right side of the jQuery official website homepage; then click to enter the jQuery download page and download; finally, use the script tag to introduce jquery.
The operating environment of this tutorial: Dell G3 computer, Windows 7 system, jquery3.4.1 version.
Recommended: "javascript basic tutorial""jQuery tutorial"
Download jquery
First We need to go to the jQuery official website to download a copy of jQuery. The official website is a bit slow to open. After all, it is a foreign product, so we have to wait patiently.
jQuery official website address: http://jquery.com
There is a download button on the right side of the jQuery official website homepage. Click to enter the jQuery download page.
Then you will see that there are many versions that can be downloaded, including compressed production versions, compressed development boards, and jQuery documentation. You can download them according to your own requirements. Requires downloading.
Quoting jQuery
So how to introduce jQuery? It's actually very simple. First we need to open the html document that needs to introduce jQuery.
Then use the script tag to import it. Be careful not to make a mistake in the path of jQuery, otherwise it will not work. It is the same as importing images.
Note:
Be sure to introduce the jQuery file first, and then write your own jquery code, because the loading order of the page is from top to bottom, browse The browser will load your jquery code first and then the jquery library. As a result, your jquery code will be considered to be in the wrong writing format and the effect cannot be achieved.
<script src="jQuery文件路径"></script> <script> //在此书写你的jquery代码 </script>
For more programming-related knowledge, please visit: Programming Teaching! !
The above is the detailed content of How to download and quote jquery. For more information, please follow other related articles on the PHP Chinese website!