次の方法で共有


workers property

Returns an object where the keys are the ids of the currently running webworkers and the values are instances of DiagnosticsWebWorker.

Note  These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.

 

This property is read-only.

 

Syntax

JavaScript
ptr = object.workers

 

Property values

Type: any

An object of currently running webworkers.

Remarks

Note  The value of this property can change at any time, and is only a snapshot (it is not live).

 

See also

DiagnosticsBrowser