為什么會報錯?
Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///D:/%E6%90%9C%E7%8B%90%E5%AD%A6%E4%B9%A0/%E8%87%AA%E5%B7%B1%E4%BD%9C%E4%B8%9A/wepabb/test/myapp.html' cannot be created in a document with origin 'null'.
2016-08-03
給你解析了一下,看一下
Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///D:/搜狐學(xué)習(xí)/自己作業(yè)/wepabb/test/myapp.html' cannot be created in a document with origin 'null'.
2016-04-22
在引入jqm前加這么一段
<script>
? ? $(document).bind('mobileinit',function(){
? ? ? ? $.mobile.changePage.defaults.changeHash = false;
? ? ? ? $.mobile.hashListeningEnabled = false;
? ? ? ? $.mobile.pushStateEnabled = false;
? ? });
</script>
2016-01-17
你先把路徑換成非中文的,然后再嘗試一下