第95期 — 2021-02-21

在浏览器中阅读

周e信

扫描二维码关注微信公众号

Javascript

格式化数组输出🔗
new Intl.ListFormat('en', {style: 'narrow', type: 'unit'}).format(items)
// Sojourner Opportunity Spirit Curiosity Perseverance
new Intl.ListFormat('es', {style: 'narrow', type: 'unit'}).format(items)
// Sojourner Opportunity Spirit Curiosity Perseverance
new Intl.ListFormat('de', {style: 'narrow', type: 'unit'}).format(items)
// Sojourner, Opportunity, Spirit, Curiosity und Perseverance

Kent C. Dodds

扫描二维码关注微信公众号
本期阅读量