Home > Web Front-end > JS Tutorial > Two ways to reference jQuery in HTML

Two ways to reference jQuery in HTML

青灯夜游
Release: 2021-01-18 18:31:44
forward
4565 people have browsed it

Two ways to reference jQuery in HTML

Recommended tutorial: jq tutorial

Method 1: Download the jQuery library from jquery.com

Method 2 : Quote jQuery

from Staticfile CDN, Youpaiyun, Sina, Google or Microsoft (1) Download jQuery

Download address: http://jquery.com/download/

Production version: used in actual websites, has been streamlined and compressed.

Development version: For testing and development (uncompressed, readable code).

(2) Quote jQuery

on the public Internet with the following reference code:

<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
Copy after login

or:

<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
Copy after login

or:

<script src="https://upcdn.b0.upaiyun.com/libs/jquery/jquery-2.0.2.min.js">
Copy after login

or :

<script src="https://lib.sinaapp.com/js/jquery/2.0.2/jquery-2.0.2.min.js">
Copy after login

Recommended method 2: Public network citation.

For more programming-related knowledge, please visit: Programming Video! !

The above is the detailed content of Two ways to reference jQuery in HTML. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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