Today, I run my project on the Millet 5 mobile phone, found in the load assests directory of HTML files can not load out, but I have no problem on other mobile phones, and then I carefully went to see the log inside the monitor, found that there are such a line: uncaught securityerror:failed to execute ' replacestate ' on ' History ': cannot is created in a document with Origin ' null ', I checked online, but There was no result and finally found it on stack overflow.
Stack Overflow Address: http://stackoverflow.com/questions/32453806/ uncaught-securityerror-failed-to-execute-replacestate-on-history-cannot-be
found that the need to add a line of JS code in HTML, Stack overflow above the idea is to add three lines of code, in fact, only to add a sentence is enough, the following is my code to deal with this problem:
<script>
$ (document). Bind (' Mobileinit ', function () {
$.mobile.pushstateenabled = false;
});
</script>
Add the position of the code of this sentence I use a screenshot to tell you:
It's OK to add this line between Jquery-1.11.1.min.js and Jquery.mobile-1.4.5.min.js.
You are welcome to correct me.