弃用
This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the
兼容性表格
at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
languageCode
只读特性在
PaymentAddress
interface returns a string containing the
BCP-47
language code for the address.
This is used while localizing the displayy of the address, allowing the determination of the field separators and the order of fields when formatting the address.
var paymentLanguageCode = PaymentAddress.languageCode;
A
DOMString
providing the
BCP-47
format language code indicating the language the address was written in, such as
"en-US"
,
"pt-BR"
,或
"ja-JP"
.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
languageCode
弃用
非标
|
Chrome
61
Disabled
|
Edge 15 |
Firefox
不支持
56 — 63
注意事项
Disabled
|
IE 不支持 No | Opera 不支持 No | Safari ? | WebView Android 不支持 No |
Chrome Android
53
Disabled
|
Firefox Android
不支持
56 — 63
注意事项
Disabled
|
Opera Android 不支持 No | Safari iOS ? | Samsung Internet Android 不支持 No |
完整支持
不支持
兼容性未知
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。
见实现注意事项。
用户必须明确启用此特征。
PaymentAddress