Home > Web Front-end > JS Tutorial > body text

What are the two import methods for jquery?

青灯夜游
Release: 2021-11-22 14:55:00
Original
7550 people have browsed it

Two import methods: 1. Use the cdn static resource library to import, the syntax ""; 2. Download the local file to import , the syntax is "".

What are the two import methods for jquery?

The operating environment of this tutorial: windows7 system, jquery3.3.1 version, Dell G3 computer.

Two methods of jquery import

First: cdn static resource library reference

<script src="cdn的jquery网址"></script>
Copy after login

For example:

<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
Copy after login

Second type: Local download reference

Local reference. This requires you to go to the official website to download the jq library to the local

What are the two import methods for jquery?

What are the two import methods for jquery?

Import local projects and directly reference the relative address

<script src="本地jquery文件地址"></script>
Copy after login

For example:

<script src="js/jquery-3.3.1.min.js"></script>
Copy after login

Recommended related video tutorials: jQuery Tutorial(Video)

The above is the detailed content of What are the two import methods for jquery?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template