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

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

分类:Ajax


The jQuery library has a full suite of Ajax capabilities. The functions and methods therein allow us to load data from the server without a browser page refresh.
Ajax > Global Ajax Event Handlers | Deprecated > Deprecated 3.5

.ajaxComplete()

Register a handler to be called when Ajax requests complete. This is an AjaxEvent.
Ajax > Global Ajax Event Handlers

ajaxComplete event

当Ajax请求完成后注册一个回调函数。这是一个 AjaxEvent。
Ajax > Global Ajax Event Handlers | Deprecated > Deprecated 3.5

.ajaxError()

Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event.
Ajax > Global Ajax Event Handlers

ajaxError event

Ajax请求出错时注册一个回调处理函数,这是一个 Ajax Event。
Ajax > Global Ajax Event Handlers | Deprecated > Deprecated 3.5

.ajaxSend()

Attach a function to be executed before an Ajax request is sent. This is an Ajax Event.
Ajax > Global Ajax Event Handlers

ajaxSend event

在Ajax请求发送之前绑定一个要执行的函数,这是一个 Ajax Event.
Ajax > Global Ajax Event Handlers | Deprecated > Deprecated 3.5

.ajaxStart()

Register a handler to be called when the first Ajax request begins. This is an Ajax Event.
Ajax > Global Ajax Event Handlers

ajaxStart event

在AJAX 请求刚开始时执行一个处理函数。 这是一个 Ajax Event.
Ajax > Global Ajax Event Handlers | Deprecated > Deprecated 3.5

.ajaxStop()

Register a handler to be called when all Ajax requests have completed. This is an Ajax Event.
Ajax > Global Ajax Event Handlers

ajaxStop event

在AJAX 请求完成时执行一个处理函数。 这是一个 Ajax Event。
Ajax > Global Ajax Event Handlers | Deprecated > Deprecated 3.5

.ajaxSuccess()

Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event.
Ajax > Global Ajax Event Handlers

ajaxSuccess event

绑定一个函数当 Ajax 请求成功完成时执行。 这是一个Ajax Event.
Ajax > Low-Level Interface

jQuery.ajax()

执行一个异步的HTTP(Ajax)的请求。
Ajax > Low-Level Interface

jQuery.ajaxPrefilter()

在每个请求之前被发送和$.ajax()处理它们前处理,设置自定义Ajax选项或修改现有选项。
Ajax > Low-Level Interface

jQuery.ajaxSetup()

为以后要用到的Ajax请求设置默认的值
Ajax > Low-Level Interface

jQuery.ajaxTransport()

创建一个对象,用于处理Ajax数据的实际传输。
Ajax > Shorthand Methods

jQuery.get()

使用一个HTTP GET请求从服务器加载数据。
Ajax > Shorthand Methods

jQuery.getJSON()

使用一个HTTP GET请求从服务器加载JSON编码的数据。
Ajax > Shorthand Methods

jQuery.getScript()

使用一个HTTP GET请求从服务器加载并执行一个 JavaScript 文件
Miscellaneous > Collection Manipulation | Forms | Ajax > Helper Functions

jQuery.param()

创建一个数组或对象序列化的的字符串,适用于一个URL 地址查询字符串或Ajax请求。
Ajax > Shorthand Methods

jQuery.post()

使用一个HTTP POST 请求从服务器加载数据。
Ajax > Shorthand Methods

.load()

从服务器载入数据并且将返回的 HTML 代码并插入至 匹配的元素 中。
Forms | Ajax > Helper Functions

.serialize()

将用作提交的表单元素的值编译成字符串。
Forms | Ajax > Helper Functions

.serializeArray()

将用作提交的表单元素的值编译成拥有name和value对象组成的数组。例如[ { name: a value: 1 }, { name: b value: 2 },...]
  • 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
    • Deprecated 3.0
    • Deprecated 3.2
    • Deprecated 3.3
    • Deprecated 3.4
    • Deprecated 3.5
  • 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
    • 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 2024 jQuery 中文网. 冀ICP备14002930号-6