上面的範例,由於沒有設定Scope,因此整個localhost 都可以使用。但若設定navigator.serviceWorker.register('/serviceWorker.js', ...
確定! 回上一頁