Leetcode icon indicating copy to clipboard operation
Leetcode copied to clipboard

48. 你如何检查Web Worker浏览器支持

Open webVueBlog opened this issue 3 years ago • 0 comments

在使用之前,您需要检查浏览器对 Web Worker 的支持

if (typeof Worker !== "undefined") {
  // code for Web worker support.
} else {
  // Sorry! No Web Worker support..
}

webVueBlog avatar Jun 09 '22 02:06 webVueBlog