jquery mobile加载中效果_jquery mobile loading effect

jquery mobile有三种方式来控制loading效果:
1.$.mobile.loading()
2.$.mobile.showPageLoadingMsg()
3.$.mobile.hidePageLoadingMsg()
其中showPageLoadingMsg和hidePageLoadingMsg方法在1.2以后使用loading方法代替了。
具体示例如下:

//cue the page loader
$.mobile.loading( ‘show’ );

//use theme swatch “b”, a custom message, and no spinner
$.mobile.loading( ‘show’, { theme: “b”, text: “foo”, textonly: true, textVisible:true });

http://jquerymobile.com/demos/1.2.0/docs/api/methods.html