The first line loads the module, then you create a new Worker object.
第一行加载模块,然后您创建一个新的Worker对象。
First, you create a Worker object and pass it the URL of the script that will be executed in the new thread.
首先,您创建一个Worker对象并向它传递将在新线程中执行的脚本的URL。
Class is never declared in the markup of a page; it is strictly a worker object that performs background tasks.
类决不会在网页的标记中声明,严格地讲,它是一个执行后台任务的工作者对象。
应用推荐