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
Delivering Happiness
Tony Hsieh / Grand Central Publishing / 2010-6-7 / USD 27.00
http://www.deliveringhappinessbook.com/ The visionary CEO of Zappos explains how an emphasis on corporate culture can lead to unprecedented success. Pay new employees $2000 to quit. Make custome......一起来看看 《Delivering Happiness》 这本书的介绍吧!