TargetTarget.workerVersion: 23.2.0On this pageTarget.worker() 方法 ¥Target.worker() method 如果目标不是 "service_worker" 或 "shared_worker" 类型,则返回 null。 ¥If the target is not of type "service_worker" or "shared_worker", returns null. 签名 ¥Signature class Target { worker(): Promise<WebWorker | null>;} Returns: Promise<WebWorker | null>