Blogger Information
Blog 14
fans 0
comment 0
visits 8225
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
4月3日作业Jquery的两种引入方式;$(document).read()使用方式与简写——2018年4月3日10:50
程序员Z
Original
596 people have browsed it

一、Jquery的两种引入方式


1、本地引用

到jQuery官网下载JS插件,倒入到本地的项目,直接用代码相对地址引用,如:

src = "本地jquery地址/jquery-3.1.1.js"

2、网络饮用

使用网络的静态资源公共库,如百度的,http://cdn.code.baidu.com/

在库里搜索 JQ ,  复制地址  http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js

在写代码时, 直接将该地址复制到代码中即可,<script src="<a href="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post