jQuery logojQuery API 中文文档 | jQuery 中文网

  • 首页
  • 浏览器支持
  • 英文文档镜像

分类:Version 4.0


This is a pre-release. Behavior may change before 4.0.0 final is released.

Aspects of the API that were changed in the corresponding version of jQuery.

Dropped support for IE <11 & Edge Legacy, removed deprecated APIs, added FormData support, improved support for CSP & Trusted Types. Automatic JSONP promotion removed. Special handling of boolean attributes removed.

Callbacks & Deferred modules are now excluded from the Slim build.

jQuery is now authored in ESM.

For more information, see the jQuery Core 4.0 Upgrade guide and the Release Notes/Changelog of jQuery 4.0.0-rc.1.


Attributes | Manipulation > General Attributes

.attr()

获取匹配的元素集合中的第一个元素的属性的值。设置每一个匹配元素的一个或多个属性。
CSS | Manipulation > Style Properties

.css()

获取匹配元素集合中的第一个元素的样式属性的值设置每个匹配元素的一个或多个CSS属性。
  • Ajax
    • Global Ajax Event Handlers
    • Helper Functions
    • Low-Level Interface
    • Shorthand Methods
  • Attributes
  • Callbacks Object
  • Core
  • CSS
  • Data
  • Deferred Object
  • Deprecated
    • Deprecated 1.3
    • Deprecated 1.4
    • Deprecated 1.7
    • Deprecated 1.8
    • Deprecated 1.9
    • Deprecated 1.10 & 2.0
    • Deprecated 3.0
    • Deprecated 3.2
    • Deprecated 3.3
    • Deprecated 3.4
    • Deprecated 3.5
    • Deprecated 3.7
  • Dimensions
  • Effects
    • Basics
    • Custom
    • Fading
    • Sliding
  • Events
    • Browser Events
    • Document Loading
    • Event Handler Attachment
    • Event Object
    • Form Events
    • Keyboard Events
    • Mouse Events
  • Forms
  • Internals
  • Manipulation
    • Class Attribute
    • Copying
    • DOM Insertion
    • DOM Insertion, Around
    • DOM Insertion, Inside
    • DOM Insertion, Outside
    • DOM Removal
    • DOM Replacement
    • General Attributes
    • Style Properties
  • Miscellaneous
    • Collection Manipulation
    • Data Storage
    • DOM Element Methods
    • Setup Methods
  • Offset
  • Properties
    • Properties of jQuery Object Instances
    • Properties of the Global jQuery Object
  • Removed
  • Selectors
    • Attribute
    • Basic
    • Basic Filter
    • Child Filter
    • Content Filter
    • Form
    • Hierarchy
    • jQuery Extensions
    • Visibility Filter
  • Traversing
    • Filtering
    • Miscellaneous Traversing
    • Tree Traversal
  • Uncategorized
  • Utilities
  • Version
    • Version 1.0
    • Version 1.0.4
    • Version 1.1
    • Version 1.1.2
    • Version 1.1.3
    • Version 1.1.4
    • Version 1.2
    • Version 1.2.3
    • Version 1.2.6
    • Version 1.3
    • Version 1.4
    • Version 1.4.1
    • Version 1.4.2
    • Version 1.4.3
    • Version 1.4.4
    • Version 1.5
    • Version 1.5.1
    • Version 1.6
    • Version 1.7
    • Version 1.8
    • Version 1.9
    • Version 1.10 & 2.0
    • Version 1.11 & 2.1
    • Version 1.12 & 2.2
    • Version 3.0
    • Version 3.1
    • Version 3.2
    • Version 3.3
    • Version 3.4
    • Version 3.5
    • Version 3.6
    • Version 3.7
    • Version 4.0
    • All
  • Bootstrap
  • TailwindCSS
  • React
  • StyleX
  • Next.js
  • Nextra
  • Docusaurus
  • Lodash
  • NPM
  • Yarn
  • pnpm
  • Webpack
  • Rollup
  • Parcle
  • esbuild
  • Biome
  • SASS
  • Gulp
  • Markdonw
  • Svelte
  • Alpine.js
  • Prettier
  • Axios
  • Deno
  • Bun
  • Eleventy(11ty)
  • Strapi
  • Cheerio
  • Astro

Copyright 2025 jQuery 中文网. 冀ICP备14002930号-6