gulp
所属分类:Pascal/Delphi编程
开发工具:HTML
文件大小:1297KB
下载次数:0
上传日期:2020-04-01 02:38:34
上 传 者:
aderarabi
说明: test en web html login
文件列表:
node_modules\jquery\AUTHORS.txt (11945, 1985-10-26)
node_modules\jquery\bower.json (190, 1985-10-26)
node_modules\jquery\dist\core.js (9165, 1985-10-26)
node_modules\jquery\dist\jquery.js (280364, 1985-10-26)
node_modules\jquery\dist\jquery.min.js (88145, 1985-10-26)
node_modules\jquery\dist\jquery.min.map (136397, 1985-10-26)
node_modules\jquery\dist\jquery.slim.js (227022, 1985-10-26)
node_modules\jquery\dist\jquery.slim.min.js (71037, 1985-10-26)
node_modules\jquery\dist\jquery.slim.min.map (108757, 1985-10-26)
node_modules\jquery\external\sizzle\dist\sizzle.js (65666, 1985-10-26)
node_modules\jquery\external\sizzle\dist\sizzle.min.js (19841, 1985-10-26)
node_modules\jquery\external\sizzle\dist\sizzle.min.map (30740, 1985-10-26)
node_modules\jquery\external\sizzle\LICENSE.txt (1605, 1985-10-26)
node_modules\jquery\LICENSE.txt (1095, 1985-10-26)
node_modules\jquery\package.json (3606, 2020-03-31)
node_modules\jquery\src\.eslintrc.json (156, 1985-10-26)
node_modules\jquery\src\ajax\jsonp.js (2748, 1985-10-26)
node_modules\jquery\src\ajax\load.js (1904, 1985-10-26)
node_modules\jquery\src\ajax\parseXML.js (559, 1985-10-26)
node_modules\jquery\src\ajax\script.js (1637, 1985-10-26)
node_modules\jquery\src\ajax\var\location.js (67, 1985-10-26)
node_modules\jquery\src\ajax\var\nonce.js (62, 1985-10-26)
node_modules\jquery\src\ajax\var\rquery.js (60, 1985-10-26)
node_modules\jquery\src\ajax\xhr.js (4339, 1985-10-26)
node_modules\jquery\src\ajax.js (22463, 1985-10-26)
node_modules\jquery\src\attributes\attr.js (3271, 1985-10-26)
node_modules\jquery\src\attributes\classes.js (4447, 1985-10-26)
node_modules\jquery\src\attributes\prop.js (3004, 1985-10-26)
node_modules\jquery\src\attributes\support.js (786, 1985-10-26)
node_modules\jquery\src\attributes\val.js (4249, 1985-10-26)
node_modules\jquery\src\attributes.js (217, 1985-10-26)
node_modules\jquery\src\callbacks.js (5552, 1985-10-26)
node_modules\jquery\src\core\access.js (1311, 1985-10-26)
node_modules\jquery\src\core\camelCase.js (545, 1985-10-26)
node_modules\jquery\src\core\DOMEval.js (1160, 1985-10-26)
node_modules\jquery\src\core\init.js (3337, 1985-10-26)
node_modules\jquery\src\core\isAttached.js (789, 1985-10-26)
node_modules\jquery\src\core\nodeName.js (178, 1985-10-26)
node_modules\jquery\src\core\parseHTML.js (1604, 1985-10-26)
... ...
# 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.4.1](https://blog.jquery.com/2019/05/01/jquery-3-4-1-triggering-focus-events-in-ie-and-finding-root-elements-in-ios-10/). 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
```
#### 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);
});
```
近期下载者:
相关文件:
收藏者: