addressLine 只读特性在 PaymentAddress interface is an array of DOMString objects, each specifying a line of the address that is not covered by one of the other properties of PaymentAddress . These lines may include the street name, house number, apartment number, rural delivery route, descriptive instructions, or post office box.

句法

var paymentAddressLines = PaymentAddress.addressLine;
					

An array of DOMString objects, each containing one line of the address. For example, the addressLine array for the Mozilla Space in London would have the following entries:

Example showing addressLine entries for an address in London
索引 addressLine[] value
0 Metal Box Factory
1 Suite 441, 4th floor
2 30 Great Guildford Street

These, combined with additional values for other properties of the PaymentAddress , would represent the full address, which is:

Mozilla
Metal Box Factory
Suite 441, 4th floor
30 Great Guildford Street
London SE1 0HS
United Kingdom

规范

规范 状态 注释
支付请求 API
The definition of 'PaymentAddress.addressLine' 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
addressLine 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