Document.pointerLockElement
pointerLockElement
特性规定了如在鼠标事件中当目标被锁定时的元素集和。如果指针处于锁定等待中、指针没有被锁定,或者目标在另外一个文档中这几种情况,返回的值 null
。
语法
var element = document.pointerLockElement;
返回值
An Element
or null
.
规范
Specification |
---|
Pointer Lock 2.0 # dom-documentorshadowroot-pointerlockelement |
浏览器兼容
BCD tables only load in the browser