使用JQuery Mobile时如何显示加载 [英] How to show loading when using JQuery Mobile
本文介绍了使用JQuery Mobile时如何显示加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Possible Duplicate:
Show Page Loading Spinner on Ajax Call in jQuery Mobile
有一个JQuery移动用户界面,当页面未完全显示时如何显示加载?
have a JQuery mobile UI, how to show loading when page is not fully showed?
推荐答案
文档: http://jquerymobile.com/demos/1.0a4.1/#docs/api/methods.html
$.mobile.pageLoading (method)
显示或隐藏页面加载消息,可通过$ .mobile.loadingMessage对其进行配置. 参数: 完成(布尔值,默认为false,表示已开始加载). True将隐藏加载消息. 例子:
Show or hide the page loading message, which is configurable via $.mobile.loadingMessage. Arguments: Done (boolean, defaults to false, meaning loading has started). True will hide the loading message. Examples:
//cue the page loader
$.mobile.pageLoading();
//hide the page loader
$.mobile.pageLoading( true );
这篇关于使用JQuery Mobile时如何显示加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文