jQuery ajaxSend() 方法
jQuery 教程
· 2019-03-28 15:37:58
实例
当 AJAX 请求即将发送时,改变 <div> 元素的内容:
$(document).ajaxSend(function(e,xhr,opt){
$("div").append("<p>Requesting: " + opt.url + "</p>");
});
定义和用法
ajaxSend() 方法规定 AJAX 请求即将发送时运行的函数。
注意:自 jQuery 版本 1.8 起,该方法只被附加到文档。
语法
$(document).ajaxSend(function(event,xhr,options))
| 参数 | 描述 |
|---|---|
| function(event,xhr,options) |
必需。规定当请求成功时运行的函数。 额外的参数:
|
点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html
Dive Into Python
Mark Pilgrim / Apress / 2004-11-5 / GBP 31.49
Python is a new and innovative scripting language. It is set to replace Perl as the programming language of choice for shell scripters, and for serious application developers who want a feature-rich, ......一起来看看 《Dive Into Python》 这本书的介绍吧!