# jQuery
> jQuery is a fast, small, and feature-rich JavaScript library.
For information on how to get started and how to use jQuery, please see [jQuery's documentation](http://api.jquery.com/).
For source files and issues, please visit the [jQuery repo](https://github.com/jquery/jquery).
If upgrading, please see the [blog post for 3.3.1](https://blog.jquery.com/2017/03/20/jquery-3.3.1-now-available/). This includes notable differences from the previous version and a more readable changelog.
## Including jQuery
Below are some of the most common ways to include jQuery.
### Browser
#### Script tag
```html
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
```
#### Babel
[Babel](http://babeljs.io/) is a next generation JavaScript compiler. One of the features is the ability to use ES6/ES2015 modules now, even though browsers do not yet support this feature natively.
```js
import $ from "jquery";
```
#### Browserify/Webpack
There are several ways to use [Browserify](http://browserify.org/) and [Webpack](https://webpack.github.io/). For more information on using these tools, please refer to the corresponding project's documention. In the script, including jQuery will usually look like this...
```js
var $ = require("jquery");
```
#### AMD (Asynchronous Module Definition)
AMD is a module format built for the browser. For more information, we recommend [require.js' documentation](http://requirejs.org/docs/whyamd.html).
```js
define(["jquery"], function($) {
});
```
### Node
To include jQuery in [Node](nodejs.org), first install with npm.
```sh
npm install jquery
```
For jQuery to work in Node, a window with a document is required. Since no such window exists natively in Node, one can be mocked by tools such as [jsdom](https://github.com/tmpvar/jsdom). This can be useful for testing purposes.
```js
require("jsdom").env("", function(err, window) {
if (err) {
console.error(err);
return;
}
var $ = require("jquery")(window);
});
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
基于Java的学籍信息管理系统设计.zip (392个子文件)
iview.css 258KB
bootstrap.css 143KB
bootstrap.min.css 118KB
ionicons.css 56KB
ionicons.min.css 50KB
bootstrap-theme.css 26KB
bootstrap-table-group-by.css 24KB
bootstrap-theme.min.css 23KB
style.css 8KB
loading.css 8KB
bootstrap-table.css 7KB
iconfont.css 6KB
bootstrap-table.min.css 6KB
index.css 5KB
order-detail.css 4KB
search.css 4KB
register.css 4KB
wareHouse.css 2KB
outstock.css 2KB
return-goods.css 2KB
refund.css 2KB
abnormal-order.css 2KB
addstock.css 2KB
pager.css 2KB
reset.css 1KB
sfont.css 1KB
warehouse.css 945B
bootstrap-table-reorder-rows.css 819B
bootstrap-table-tree-column.css 582B
bootstrap-table-sticky-header.css 416B
bootstrap-table-multiple-selection-row.css 306B
bootstrap-table-click-edit-row.css 287B
bootstrap-table-filter-control.css 190B
bootstrap-table-jumpto.css 148B
bootstrap-table-group-by.css 129B
bootstrap-table-auto-refresh.css 48B
ionicons.eot 118KB
glyphicons-halflings-regular.eot 20KB
sfont.eot 4KB
stu-list.html 41KB
school_leaver.html 25KB
transfer_list.html 25KB
score_list.html 17KB
course_list.html 16KB
administrator.html 10KB
roleManagement.html 8KB
stuDetails.html 8KB
stuHomePage.html 6KB
stu-detail.html 6KB
loadingLogin.html 6KB
index.html 6KB
stuStatusDetail.html 5KB
stuMarkDetails.html 2KB
stuCourseDetails.html 2KB
stuPageLogin.html 2KB
vue3.html 2KB
vue.html 714B
vue2.html 697B
Nopower.html 259B
student.java 8KB
ShiroConfig.java 7KB
TbUserServiceImpl.java 6KB
PageController.java 6KB
RoleServiceImpl.java 6KB
StudentController.java 6KB
StuPageController.java 5KB
StudentServiceImpl.java 4KB
TbRoleController.java 4KB
CourseServiceImpl.java 3KB
LoginServiceImpl.java 3KB
ScoreController.java 3KB
CourseController.java 3KB
LoginController.java 3KB
TbUser.java 3KB
TransInput.java 2KB
Mark.java 2KB
MyRealm.java 2KB
TbPermission.java 2KB
UserServiceImpl.java 2KB
ScoreServiceImpl.java 2KB
UserController.java 2KB
BaseResult.java 2KB
MD5Utils.java 2KB
TbRole.java 2KB
TbUserMapper.java 2KB
TbRoleMapper.java 1KB
shellUtils2.java 1KB
RoleService.java 1KB
TbRolePermission.java 1KB
TbUserService.java 1KB
LoginService.java 1KB
Course.java 1KB
StudentMapper.java 1KB
StuPageServiceImpl.java 1KB
markDto.java 1KB
studentService.java 1KB
courseDto.java 985B
shellUtils.java 930B
CourseService.java 732B
CORSConfiguration.java 707B
共 392 条
- 1
- 2
- 3
- 4
资源评论
博士僧小星
- 粉丝: 1907
- 资源: 5877
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功