Failed to execute 'replaceState' on 'History' cannot be created in a document with origin 'null'

后端 未结 1 505
旧巷少年郎
旧巷少年郎 2020-12-16 04:53

I am creating a page for the transition.

Clicking on the page to navigate to another page - works on Firefox, but it doesn\'t on Chrome.

Error is showing : <

相关标签:
1条回答
  • 2020-12-16 05:30

    The issue occured in jquery.mobile-1.4.5.min.js:3

    Solution:

    Add this script before import as follows:

    <script>
        $(document).bind('mobileinit',function(){
            $.mobile.pushStateEnabled = false;
        });
    </script>
    <script type="text/javascript" src="js/jquery.mobile-1.4.5.min.js"></script>
    
    0 讨论(0)
提交回复
热议问题