Jquery mobile 页面加载小部件中的JQuery Mobile自定义HTML

Jquery mobile 页面加载小部件中的JQuery Mobile自定义HTML,jquery-mobile,Jquery Mobile,如何为JQuery移动web应用程序的页面加载小部件定制HTML 我尝试了以下方法: $(document).on('mobileinit', function(){ $.mobile.loader.prototype.options.html = "<span class='ui-bar ui-overlay-c ui-corner-all'><img src='/image/logo.png' /><h2>loading...</h2>

如何为JQuery移动web应用程序的页面加载小部件定制HTML

我尝试了以下方法:

$(document).on('mobileinit', function(){
    $.mobile.loader.prototype.options.html = "<span class='ui-bar ui-overlay-c ui-corner-all'><img src='/image/logo.png' /><h2>loading...</h2></span>";
});
$(document).on('mobileinit',function()){
$.mobile.loader.prototype.options.html=“加载…”;
});
但它仍然显示默认图像。我想要一个全局配置。

在单个页面中 文件,以供参考。也看看这个

你应该做如下的事情

$(文档).ready(函数(){
$.mobile.loading('show'{
文本:“foo”,
textVisible:对,
主题:“z”,
html:“正在加载…”
});
});

标题

我想要一个全局配置