我剛剛得到這個錯誤在它使用一個IDE來渲染頁面的桌面上只有一個網站歷史記錄狀態對象。它適用於FireFox,但是生成所有JavaScript所需的控件卻不在Chrome中。也許我可以添加一個交叉兼容線,但我不知道是什麼。之所以是這樣奇怪的錯誤我從來沒有在之前調試了...... 請幫忙解決。瀏覽器:未捕獲的SecurityError:無法對「歷史」執行「replaceState」:用URL
Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///C:/Users/J/Desktop/Rain_Watch%20Webpage/default.html' cannot be created in a document with origin 'null'.
jquery.min.js:2 Uncaught Error: jHERE already initialized, expected method.
我發現這個問題的一部分,是該行代碼被註釋掉它:''這是一個過時的JavaScript和jQuery手機腳本參考? – safron6
我試過這個我可能對你有幫助。 ** [未能執行關於 '歷史記錄' 'replaceState'](http://stackoverflow.com/questions/32481260/failed-to-execute-replacestate-on-history-local-url-cannot-be-created- IN-A?answertab =活性#製表頂部**) –