PaymentAddress.sortingCode

这篇翻译不完整。请帮忙从英语翻译这篇文章

这是一个实验中的功能
此功能某些浏览器尚在开发中,请参考浏览器兼容性表格以得到在不同浏览器中适合使用的前缀。由于该功能对应的标准文档可能被重新修订,所以在未来版本的浏览器中该功能的语法和行为可能随之改变。

PaymentAddress 接口的 sortingCode 只读属性返回一个包含邮政排序代码的字符串 such as is used in France.

Syntax

var paymentSortingCode = PaymentAddress.sortingCode;

Example

In the example below, the various properties of the PaymentAddress object are retrieved into individual variables for later use, with the exception of the addressLine array property, which is copied into another array.

var pmtcountry = PaymentAddress.country;
var pmtaddress = PaymentAddress.addressLine.slice(0);
var pmtregion = PaymentAddress.region;
var pmtcity = PaymentAddress.city;
var pmtdeploc = PaymentAddress.dependentLocality;
var pmtpostal = PaymentAddress.postalCode;
var pmtsorting = PaymentAddress.sortingCode;
var pmtlang = PaymentAddress.languageCode;
var pmtorg = PaymentAddress.organization;
var pmtrecip = PaymentAddress.recipient;
var pmtcareof = PaymentAddress.careOf;
var pmtphone = PaymentAddress.phone;

Specifications

Specification Status Comment
Payment Request API
paymentaddress
Working Draft Initial definition.

Browser Compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support

53.0

? ? ? ?
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support 未实现 53.0 ? ? ? ? ? 53.0

文档标签和贡献者

 此页面的贡献者: xgqfrms-GitHub
 最后编辑者: xgqfrms-GitHub,