这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
paymentRequestOrigin
只读特性在
PaymentRequestEvent
interface returns the origin where the
PaymentRequest
object was initialized.
var aUsvString = paymentRequestEvent.paymentRequestOrigin
A USVString.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Payment Handler API
The definition of 'paymentRequestOrigin' in that specification. |
工作草案 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
paymentRequestOrigin
|
Chrome
60
Disabled
|
Edge
≤79
Disabled
|
Firefox No | IE ? | Opera No | Safari ? | WebView Android No |
Chrome Android
60
Disabled
|
Firefox Android No | Opera Android No | Safari iOS ? | Samsung Internet Android No |
完整支持
不支持
兼容性未知
实验。期望将来行为有所改变。
用户必须明确启用此特征。
PaymentRequestEvent
paymentRequestId
paymentRequestOrigin
topOrigin
total