这是 实验性技术
检查 浏览器兼容性表格 要小心谨慎在生产中使用这之前。

openWindow 特性为 PaymentRequestEvent interface opens the specified URL in a new window, if and only if the given URL is on the same origin as the calling page. It returns a Promise that resolves with a reference to a WindowClient .

句法

var aPromise = paymentRequestEvent.openWindow(url)
					

参数

url

The URL to open in the new window. It must be on the same origin as the calling page.

返回值

A Promise that resolves with a reference to a WindowClient .

规范

规范 状态 注释
Payment Handler API
The definition of 'openWindow' in that specification.
工作草案 初始定义。

浏览器兼容性

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.

No compatibility data found. Please contribute data for "api.PaymentRequestEvent.openWith" (depth: 1) to the MDN 兼容性数据存储库 .

元数据

  • 最后修改: