雙擊 .html 檔案無反應或報錯,通常是檔案關聯損壞或瀏覽器路徑失效。按步驟快速修復。
HKEY_CLASSES_ROOT\.html 鍵值錯誤。.html 檔案 →「打開方式」→「選擇其他應用程式」。

assoc .html=htmlfile
ftype htmlfile="C:\Program Files\Google\Chrome\Application\chrome.exe" "%1"
以管理員身份執行 CMD 執行上述命令,立即生效。
本地開發請啟動本地伺服器(如 live-server、http-server、PHP/Node 內建),避免 file:// 協議觸發跨域、Cookie、Service Worker 等限制。