不应该是import 应该使用importScript。 顺便提醒一下,service worker 是没有document 和window 对象的,如果你的module 是通过webpack 打包出来的话 ...
確定! 回上一頁