问答详情
源自:3-1 jQuery Mobile 页面(一)

报错了???

Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///D:/bdd-web%20app/carTimeList.html' cannot be created in a document with origin 'null' and URL 'file:///D:/bdd-web%20app/carTimeList.html'.

提问者:陌上09 2016-04-07 09:22

个回答

  • kangkai_fe
    2016-04-22 22:54:30

    chrome浏览器?

    在引入jqm前加这么一段

    <script>

        $(document).bind('mobileinit',function(){

            $.mobile.changePage.defaults.changeHash = false;

            $.mobile.hashListeningEnabled = false;

            $.mobile.pushStateEnabled = false;

        });

    </script>


  • weibo_怎能用真名_0
    2016-04-12 11:51:12

    贴代码!