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

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

内容简介: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 发布:引入国际化相对时间格式》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

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

Algorithms Sequential & Parallel

Algorithms Sequential & Parallel

Russ Miller、Laurence Boxer / Charles River Media / 2005-08-03 / USD 59.95

With multi-core processors replacing traditional processors and the movement to multiprocessor workstations and servers, parallel computing has moved from a specialty area to the core of computer scie......一起来看看 《Algorithms Sequential & Parallel》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

随机密码生成器
随机密码生成器

多种字符组合密码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码