这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
安全上下文
此特征只可用于
安全上下文
(HTTPS),在某些或所有
支持浏览器
.
presentation
property of
Navigator
serves as the entry point for the
Presentation API
and returns a reference to
Presentation
对象。
const presentation = navigator.presentation
A reference to
Presentation
对象。
| 规范 | 状态 | 注释 |
|---|---|---|
|
Presentation API
The definition of 'Navigator.presentation' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
presentation
|
Chrome Yes | Edge ≤79 | Firefox 51 | IE ? | Opera Yes | Safari ? | WebView Android No | Chrome Android Yes | Firefox Android 51 | Opera Android Yes | Safari iOS ? | Samsung Internet Android Yes |
完整支持
不支持
兼容性未知
用户必须明确启用此特征。
Navigator
activeVRDisplays
appCodeName
appName
appVersion
battery
buildID
clipboard
connection
cookieEnabled
credentials
deviceMemory
doNotTrack
geolocation
keyboard
语言
languages
locks
maxTouchPoints
mediaDevices
mediaSession
onLine
oscpu
permissions
platform
product
productSub
serviceWorker
userAgent
vendor
vendorSub
webdriver
xr