Javascript 链接外部网站时使用Jquery mobile加载popover。
我试图加载一个外部网站使用jquery手机和有一个加载png,所以只有当外部网站页面加载了加载png消失Javascript 链接外部网站时使用Jquery mobile加载popover。,javascript,jquery,mobile,jquery-mobile,Javascript,Jquery,Mobile,Jquery Mobile,我试图加载一个外部网站使用jquery手机和有一个加载png,所以只有当外部网站页面加载了加载png消失 你知道如何使用jquery mobile创建这种效果吗 您可以将函数绑定到ajax开始、停止和错误事件,以显示png // error with request $(document).ajaxError(function (event, xhr, settings, error){ // something went wrong }); // show loading indicato
你知道如何使用jquery mobile创建这种效果吗 您可以将函数绑定到ajax开始、停止和错误事件,以显示png
// error with request
$(document).ajaxError(function (event, xhr, settings, error){
// something went wrong
});
// show loading indicator
// when ajax requests start
$(document).ajaxStart(function (){
showLoadingGraphic();
});
// remove loading indicator
// when ajax requests complete
$(document).ajaxStop(function (){
hideLoadingGraphic();
});