jQuery Mobile:如何从jQuery Mobile中完全删除预加载器? [英] jquery mobile: how to completely remove the pre-loader from jquery mobile?

查看:133
本文介绍了jQuery Mobile:如何从jQuery Mobile中完全删除预加载器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过更改jquery mobile的CSS,您可以在重新加载页面时删除预加载器图片,但是在重新加载页面时仍会出现一个灰色圆圈.

By changing the CSS for jquery mobile you can remove the pre-loader image on page reloads, but still a grey circle appears on page reloads.

如何一起删除jquery mobile中的预加载指示?

What would be the way to remove the preload indication in jquery mobile all together?

推荐答案

最好的方法是完全禁用它.

The best way would be to disable it altogether.

尝试在mobileinit事件上使用它:

$.mobile.loadingMessage = false;

这应该完全禁用它:

$.mobile.hidePageLoadingMsg()

有关此内容的更多信息(包含一些示例),请参见jQuery移动文档这里.

More about this (with some examples) can be found in jQuery mobile documentation here.

这篇关于jQuery Mobile:如何从jQuery Mobile中完全删除预加载器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆