Skip to content

pantoken / renderers/web-components/src / formatList

函数: formatList()

formatList(locale, items, options?): string

Alpha

一个与区域设置绑定的列表格式化器(例如在英语中为 "a, b, and c",在其他语言中使用正确的连词)。

参数

locale

string

items

readonly string[]

options?

ListFormatOptions

返回值

string