这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
isSecureContext
只读特性在
WindowOrWorkerGlobalScope
interface returns a boolean indicating whether the current
context is secure
(
true
) 或不 (
false
).
var isItSecure = self.isSecureContext; // or just isSecureContext
A
布尔
.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Secure Contexts
The definition of 'WindowOrWorkerGlobalScope.isSecureContext' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
isSecureContext
|
Chrome 55 | Edge ≤79 | Firefox 52 | IE ? | Opera ? | Safari ? | WebView Android 55 | Chrome Android 55 | Firefox Android 52 | Opera Android ? | Safari iOS ? | Samsung Internet Android 6.0 |
完整支持
兼容性未知
实验。期望将来行为有所改变。