我要扩展的AJAX功能,以便每当它被称为的图像出现在页面上,表示有内容加载。
I want to extend the ajax function so that whenever it is called an image appears on the page that indicates there is content loading.
我可以用prefilters作为此网页。 http://api.jquery.com讨论/延长-AJAX / 来显示图像,但我怎么能隐藏图像,一旦请求完成?
I can use prefilters as discussed on this page http://api.jquery.com/extending-ajax/ to show the image but how could I hide the image once the request is complete?
请看看这里:的全局AJAX事件处理
这些使它容易实现加载图像,每当一个Ajax请求是通过jQuery的发送。没有必要延伸
These make it trivial to implement a loading image whenever an ajax request is sent through jQuery. No extending needed.
上一篇:弹簧袋鼠REST JSON控制器裂伤日期字段袋鼠、字段、弹簧、控制器
下一篇:mb_strlen()及strlen的()不会从一个Ajax调用PHP返回正确的价值观价值观、正确、strlen、mb_strlen