这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
respondWith
特性为
PaymentRequestEvent
interface prevents the default event handling and allows you to provide a
Promise
对于
PaymentResponse
object yourself.
paymentRequestEvent.respondWith( // Promise that resolves with a PaymentResponse. )
Promise
that resolves with a
PaymentResponse
对象。
A
PaymentResponse
对象。
| 规范 | 状态 | 注释 |
|---|---|---|
|
Payment Handler API
The definition of 'respondWith' in that specification. |
工作草案 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
respondWith()
|
Chrome
59
Disabled
|
Edge
≤79
Disabled
|
Firefox No | IE ? | Opera No | Safari ? | WebView Android No |
Chrome Android
59
Disabled
|
Firefox Android No | Opera Android No | Safari iOS ? | Samsung Internet Android No |
完整支持
不支持
兼容性未知
实验。期望将来行为有所改变。
用户必须明确启用此特征。
PaymentRequestEvent
openWindow()
respondWith()