Home  >  Article  >  Web Front-end  >  How to download and quote jquery

How to download and quote jquery

藏色散人
藏色散人Original
2021-01-05 11:01:014204browse

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.

How to download and quote 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.

How to download and quote jquery

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.

How to download and quote jquery

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.

How to download and quote jquery

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn