Intl.ListFormat.prototype.resolvedOptions()
Intl.ListFormat
实例的 resolvedOptions()
方法返回一个新对象,其属性反映了在构造此 Intl.ListFormat
对象期间计算的区域设置和样式格式选项。
¥The resolvedOptions()
method of Intl.ListFormat
instances
returns a new object with properties reflecting the locale and style formatting
options computed during the construction of this Intl.ListFormat
object.
Try it
语法
参数
返回值
¥Return value
具有反映在构造给定 Intl.ListFormat
对象期间计算的区域设置和格式选项的属性的对象。
¥An object with properties reflecting the locale and formatting options computed during
the construction of the given Intl.ListFormat
object.
描述
¥Description
resolvedOptions()
返回的对象具有以下属性:
¥The object returned by resolvedOptions()
has the following properties:
示例
使用 resolvedOptions
规范
Specification |
---|
ECMAScript Internationalization API Specification # sec-Intl.ListFormat.prototype.resolvedoptions |
浏览器兼容性
BCD tables only load in the browser