We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document节点快捷方式属性中document.fullscreenElement属性的例子 if (document.fullscreenElement.nodeName == 'VIDEO') { console.log('全屏播放视频'); } 好像有问题,报错提示 document.fullscreenElement is null。 在判断中加上?则不会报错, if (document.fullscreenElement?.nodeName == 'VIDEO') { console.log('全屏播放视频'); }
The text was updated successfully, but these errors were encountered:
2f55be8
谢谢指出,已经更正。
Sorry, something went wrong.
No branches or pull requests
Document节点快捷方式属性中document.fullscreenElement属性的例子
if (document.fullscreenElement.nodeName == 'VIDEO') {
console.log('全屏播放视频');
}
好像有问题,报错提示 document.fullscreenElement is null。
在判断中加上?则不会报错,
if (document.fullscreenElement?.nodeName == 'VIDEO') {
console.log('全屏播放视频');
}
The text was updated successfully, but these errors were encountered: