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://www.codercto.com/courses/l/35.html

查看所有标签

An Introduction to the Analysis of Algorithms

An Introduction to the Analysis of Algorithms

Robert Sedgewick、Philippe Flajolet / Addison-Wesley Professional / 1995-12-10 / CAD 67.99

This book is a thorough overview of the primary techniques and models used in the mathematical analysis of algorithms. The first half of the book draws upon classical mathematical material from discre......一起来看看 《An Introduction to the Analysis of Algorithms》 这本书的介绍吧!

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

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

HSV CMYK互换工具