1

我已经使用标准方法来自定义 jQuery Mobile 1.3.1 中加载器的默认文本:

$(document).on("mobileinit", function () {
   $.mobile.selectmenu.prototype.options.hidePlaceholderMenuItems = true;
   $.mobile.loader.prototype.options.text = "Loading...";
   $.mobile.loader.prototype.options.textVisible = true;
   $.mobile.loader.prototype.options.theme = "a";
   $.mobile.loader.prototype.options.html = "";
});

这不会导致自定义加载程序显示文本“正在加载...”。

4

1 回答 1

0

解决方案是将此代码放在一个单独的文件中,并在 Jquery 之后和 JQM 之前加载它。简单地将脚本放在标签之间并不能解决问题。

于 2013-07-03T14:44:02.097 回答