jQuery ajaxSuccess() 方法
jQuery 教程
· 2019-03-28 16:37:32
实例
当 AJAX 请求成功完成时,触发一个提示框:
$(document).ajaxSuccess(function(){
alert("AJAX 请求完成");
});
定义和用法
ajaxSuccess() 方法规定 AJAX 请求成功完成时运行的函数。
注意:自 jQuery 版本 1.8 起,该方法只被附加到文档。
语法
$(document).ajaxSuccess(function(event,xhr,options))
| 参数 | 描述 |
|---|---|
| function(event,xhr,options) |
必需。规定如果请求成功时运行的函数。 额外的参数:
|
点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html
Learning PHP, MySQL, and JavaScript
Robin Nixon / O'Reilly Media / 2009-7-21 / USD 39.99
Learn how to create responsive, data-driven websites with PHP, MySQL, and JavaScript - whether or not you know how to program. This simple, streamlined guide explains how the powerful combination of P......一起来看看 《Learning PHP, MySQL, and JavaScript》 这本书的介绍吧!