简体   繁体   中英

Page loading window with jquery mobile

I found this tip http://jquerymobile.com/test/docs/pages/loader.html , but when i trying to use it i receive

TypeError: $.mobile.loading is not a function

Have any ideas?

The example you are mentioning refers to an older jQuery mobile version.

As stated in the current jQuery Mobile Doc , the equivalent method is:

$.mobile.showPageLoadingMsg (method)

Arguments:

  • theme (string, default: "a") The theme swatch for the message.
  • msgText (string, default: "loading") The text of the message.
  • textonly (boolean, default: false) If true, the "spinner" image will be hidden when the message is shown.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM