只读 dependentLocality 特性为 PaymentAddress interface is a string containing a sublocality designation within a city, such as a  neighborhood, borough, district, or, in the United Kingdom, a dependent locality. Also known as a post town .

句法

var paymentDependentLocality = PaymentAddress.dependentLocality;
					

A DOMString indicating the sublocality portion of the address. This may be an empty string if no sublocality is available or required. It's used to provide disambiguation when a city may include areas that duplicate street names

A sublocality is an area within a city, such as a neighborhood, borough, or district. In the United Kingdom, this is used to indicate the post town in the United Kingdom (known officially by the Royal Mail as the dependent locality ). This is a disambiguating feature of addresses in places where a city may have areas that duplicate street names.

规范

规范 状态 注释
支付请求 API
The definition of 'PaymentAddress.dependentLocality' in that specification.
候选推荐 初始定义。

浏览器兼容性

The compatibility table on 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. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
dependentLocality Chrome 61 Disabled
61 Disabled
Disabled ). To change preferences in Chrome, visit
Edge 15 Firefox 56 注意事项 Disabled
56 注意事项 Disabled
Available only in nightly builds. Requires the comma-delineated list in dom.payments.request.supportedRegions to contain one or more of the supported 2-character ISO locales, currently US and CA.
Disabled ). To change preferences in Firefox, visit about:config.
IE 不支持 No Opera 不支持 No Safari Yes WebView Android 不支持 No Chrome Android 53 Disabled
53 Disabled
Disabled ). To change preferences in Chrome, visit
Firefox Android 56 注意事项 Disabled
56 注意事项 Disabled
Available only in nightly builds. Requires the comma-delineated list in dom.payments.request.supportedRegions to contain one or more of the supported 2-character ISO locales, currently US and CA.
Disabled ). To change preferences in Firefox, visit about:config.
Opera Android 不支持 No Safari iOS Yes Samsung Internet Android 不支持 No

图例

完整支持

完整支持

不支持

不支持

见实现注意事项。

用户必须明确启用此特征。

用户必须明确启用此特征。

元数据

  • 最后修改:
  1. 支付请求 API
  2. PaymentAddress
  3. 特性
    1. addressLine
    2. city
    3. country
    4. dependentLocality
    5. organization
    6. phone
    7. postalCode
    8. recipient
    9. region
    10. regionCode
    11. sortingCode
    12. toJSON()
  4. Related pages for Payment Request API
    1. HTMLIFrameElement.allowPaymentRequest
    2. MerchantValidationEvent
    3. PaymentMethodChangeEvent
    4. PaymentRequest
    5. PaymentRequestUpdateEvent
    6. PaymentResponse

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1