在 JavaScript 中,我將資料從 file:///D:/Path/window1.html 寫入 localStorage。
我使用鏈接打開同一域中的視窗檔案 - ///D:/Path/window2.html。
window2 中的 localStorage 資料應該與 window1 相同,但事實并非如此。這在 Chrome 中可以正常作業。有一些解決方法嗎?這是 Firefox 103.0.2
uj5u.com熱心網友回復:
這是以前報告過的,不會修復,因為這會產生安全問題。將來可能無法在其他瀏覽器中使用。建議從本地服務器提供頁面。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/506930.html
