此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

HTMLIFrameElement:allowPaymentRequest 属性

Deprecated

Avoid using this feature in new projects. This feature may be a candidate for removal from web standards or browsers.

非标准: 该特性尚未标准化。我们不建议在生产环境中使用非标准特性,因为它们在浏览器中的支持有限,且可能发生变化或被移除。不过,在没有标准选项的特定情况下,它们可以作为合适的替代方案。

HTMLIFrameElement 接口的 allowPaymentRequest 属性返回一个表示是否可以在跨源 iframe 上调用支付请求 API 的布尔值。

一个布尔值。

浏览器兼容性

参见