且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用JQuery Mobile时如何显示加载

更新时间:2022-12-19 18:41:27

文档: 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 );