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

Two ways to reference jQuery in HTML

青灯夜游
青灯夜游forward
2021-01-18 18:31:444560browse

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">

or:

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

or:

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

or :

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

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete