Chrome 71 Beta 发布:引入国际化相对时间格式

栏目: 软件资讯 · 发布时间: 5年前

内容简介:Chrome 71 首个 Beta 版已发布。 国际相对时间格式 Chrome 71 引入了 Intl.RelativeTimeFormat(),它将开销转移到了 JavaScript 引擎。 const rtf = new Intl.RelativeTimeFormat('en'); rtf.format(3.14, ...

Chrome 71 首个 Beta 版已发布

国际相对时间格式

Chrome 71 引入了 Intl.RelativeTimeFormat(),它将开销转移到了 JavaScript 引擎。

const rtf = new Intl.RelativeTimeFormat('en');
rtf.format(3.14, 'second');
// → 'in 3.14 seconds'
rtf.format(-15, 'minute');
// → '15 minutes ago'

其他新特性

  • Add FullscreenOptions

  • Add 'persistent-storage' property to the Permission API

  • Async touchpad pinch zoom events

  • COLR/CPAL font support

  • CSS gradient color stop double-position syntax

  • Implement 'left' and 'right' values for 'text-underline-position'

  • JavaScript Modules: Credentials mode defaults to "same-origin"

  • TextEncoderStream and TextDecoderStream APIs

  • Unprefixed Fullscreen API

更多内容请查看发布公告


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上所述就是小编给大家介绍的《Chrome 71 Beta 发布:引入国际化相对时间格式》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

R Cookbook

R Cookbook

Paul Teetor / O'Reilly Media / 2011-3-22 / USD 39.99

With more than 200 practical recipes, this book helps you perform data analysis with R quickly and efficiently. The R language provides everything you need to do statistical work, but its structure ca......一起来看看 《R Cookbook》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

html转js在线工具
html转js在线工具

html转js在线工具