A bug in jQuery Mobile: When ajax and its own back are not used, that is, when you click the back button of the browser, the page will be loaded from the cache, the annoying loading animation never disappears. I found a lot of solutions on the internet, and I haven't been able to use them for a long time. Today I suddenly think of a base-payment method, and I directly moved to the jqeury-mobile class library.
Open in editor,
Find the method for displaying pageLoading, where showPageLoadingMsg is defined:
Then add the code, if ("". length <5) return; to invalidate this method.
Copy codeThe Code is as follows:
ShowPageLoadingMsg: function () {if ("". length <5) return;
Save and refresh the test. Remember not to show Chinese characters; otherwise, you need to modify the encoding format of the JS file.
OK.
However, I personally think that if the method needs to be used later, there is no way to do it. The solution can be: pollution, coupled global variable judgment, that is, to set a global variable, In this method, if judgment, whether to force return.
If you have any questions, contact me. QQ: 551996458. Of course, I am also a dish.