jQuery ajaxStart() 方法

jQuery 教程 · 2019-03-28 15:59:06

实例

当 AJAX 请求开始时,显示 "loading" 的指示:

$(document).ajaxStart(function(){ $(this).html("<img src='demo_wait.gif' />"); });

定义和用法

ajaxStart() 方法规定 AJAX 请求开始时运行的函数。

注意:自 jQuery 版本 1.8 起,该方法只被附加到文档。

语法

$(document).ajaxStart(function())

参数 描述
function() 必需。规定当 AJAX 请求开始时运行的函数。

点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html

查看所有标签

Algorithms in C (Computer Science Series)

Algorithms in C (Computer Science Series)

Robert Sedgewick / Addison-Wesley Professional / 1990-01-11 / USD 59.99

This new version of the best-selling book, Algorithms, SecondEdition, provides a comprehensive collection of algorithmsimplemented in C. A variety of algorithms are described in eachofthe following ar......一起来看看 《Algorithms in C (Computer Science Series)》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

MD5 加密
MD5 加密

MD5 加密工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具