WorkerNavigator:locks 属性
Baseline 2022
Newly available
Since March 2022, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
WorkerNavigator
接口的 locks
只读属性返回一个 LockManager
对象,该对象提供了请求新的 Lock
对象和查询现有的 Lock
对象的方法。
值
一个 LockManager
对象。
规范
Specification |
---|
Web Locks API # dom-navigatorlocks-locks |
浏览器兼容性
BCD tables only load in the browser