这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
featurePolicy
只读特性在
HTMLIFrameElement
interface returns the
FeaturePolicy
interface which provides a simple API for introspecting the feature policies applied to a specific frame.
var policy = HTMLIFrameElement.featurePolicy
A
FeaturePolicy
object that can be used to inspect the Feature Policy settings applied to the frame.
| 规范 | 状态 | 注释 |
|---|---|---|
| Feature Policy | 编者草案 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
featurePolicy
|
Chrome
74
|
Edge
79
|
Firefox
69
Disabled
|
IE No |
Opera
62
|
Safari No |
WebView Android
74
|
Chrome Android
74
|
Firefox Android
65
Alternate Name
Disabled
|
Opera Android
48
Alternate Name
Disabled
|
Safari iOS No | Samsung Internet Android 11.0 |
完整支持
不支持
实验。期望将来行为有所改变。
见实现注意事项。
用户必须明确启用此特征。
使用非标名称。
HTMLIFrameElement
allowPaymentRequest
contentWindow
csp
featurePolicy
referrerPolicy