Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

5_npm

求和拼接、创建div和input、时间

Published28 Jul 2023
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

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. For source files and issues, please visit the jQuery repo.

If upgrading, please see the blog post for 3.7.0. 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

<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>

Webpack / Browserify / Babel

There are several ways to use Webpack, Browserify or Babel. For more information on using these tools, please refer to the corresponding project's documentation. In the script, including jQuery will usually look like this:

import $ from "jquery";

If you need to use jQuery in a file that's not an ECMAScript module, you can use the CommonJS syntax:

var $ = require( "jquery" );

AMD (Asynchronous Module Definition)

AMD is a module format built for the browser. For more information, we recommend require.js' documentation.

define( [ "jquery" ], function( $ ) {

} );

Node

To include jQuery in Node, first install with npm.

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. This can be useful for testing purposes.

const { JSDOM } = require( "jsdom" );
const { window } = new JSDOM( "" );
const $ = require( "jquery" )( window );

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
webpack-cli
Environment
{
  "local_name": "webpack-cli",
  "alias": false,
  "peer_metadata": null
}
^5.1.4development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-FzwslWfF0Ocp50dc6R5NwnkFXKgGTiEqVwMt6HR7tRdldEIyGzfQ/+jHIPSPnGfR23WV8u5XGJT/GObq4lYYcw==",
  "shasum": "3d09a48a3578e55c5964b6adb09ef78516e78da5",
  "tarball": "https://registry.npmjs.org/5_npm/-/5_npm-1.0.0.tgz",
  "fileCount": 8,
  "unpackedSize": 8359,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQDpYmNqt0pIicQLjIXECUVIhWwhHVU5jdEFUiNE2BKJ5gIgCm9z2qC8GElGWdHyn9d5/03zvMhyl7GEswVcA5wCwEk="
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:30 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:c7dbad7de5340375434b6b8f09797da3602e8a496f116da953cc666a9c49fa86

Other collected versions

1.0.328 Jul1.0.228 Jul1.0.128 JulView all collected versions →