Let jquery mobile not show a way to hate loading interface _jquery

Source: Internet
Author: User
A bug in JQuery Mobile: When you do not use Ajax and his own back, that is, when you click the browser Back button, it will load the page from the cache, at which point the annoying loading animation comes out and never disappears. Online find a lot of solutions, search for a long time did not use, and today suddenly remembered to a drastic, direct move Jqeury-mobile class library.

Open With editor,

Find the way to display pageloading, Showpageloadingmsg's definition:

Then add a code, if ("" "length<5) return, let this method fail.
Copy Code code as follows:

Showpageloadingmsg:function () {if ("". length<5) return;

Save, refresh the test. Remember the best not to appear in Chinese, or you need to modify the JS file encoding format.

OK, Fix it.

But personally, if you need to use that method later, there is no way, no work. The solution can be: pollution, coupled with the global variable judgment, that is, set a global variable, in this method to make if judgments, whether forced to return.

If you have any questions, please feel free to contact me. qq:551996458. Of course, I am also very good at food.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.