jQuery Mobile-加载消息 [英] jQuery Mobile - Loading Message

查看:111
本文介绍了jQuery Mobile-加载消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我第一次使用jQuery Mobile来制作它,这样我就可以滑回到上一页,而我已经设法开始工作了.

I am using jQuery Mobile for the first time to make it so that I can swipe back to the previous page, which I have managed to get working.

但是,我在屏幕底部注意到一条丑陋的正在加载"消息.谷歌搜索后,我看到了一个名为$.mobile.hidePageLoadingMsg();的函数,该函数已添加到我的$(document).ready(function()内,但加载消息仍然存在.

However I have noticed a big ugly "loading" message at the bottom of the screen. After googling I have seen a function called $.mobile.hidePageLoadingMsg(); which I added inside my $(document).ready(function() but the loading message is still there.

我如何摆脱此消息?

欢呼

推荐答案

我通过使用jquery选择器并隐藏了元素来解决了这个问题,就像这样:

I solved the issue by using a jquery selector and hiding the element, like so:

$(document).ready( function() {
    $(".ui-loader").hide();
});

希望这会有所帮助!

这篇关于jQuery Mobile-加载消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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