Access dom by web worker

后端 未结 2 1832
我在风中等你
我在风中等你 2020-12-10 01:40

I am getting crazy and need your help. I am working on a serviceworker project and I am dealing with a javascript problem. I have two main files. The server.html

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 02:36

    Service worker is based on asynchronous and according to the article you can not access the DOM using service worked for more information read on https://developers.google.com/web/fundamentals/primers/service-workers/

提交回复
热议问题