内容简介: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 发布:引入国际化相对时间格式》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Google 广告高阶优化(第3版)
【美】Brad Geddes(布兰德.盖兹) / 宫鑫、康宁、王娜 / 电子工业出版社 / 2015-9 / 99.00元
《Google 广告高阶优化(第3版)》可以说是Google AdWords的终极指南,内容非常丰富,第三版在内容上进行了全面更新。介绍了AdWords的最新最完整的功能,阐释其工作原理,也提供了相应的优化方法、策略和实践教程,读者可以随时在自己的PPC广告系列中进行实践。第三版增添了50多页新内容,涵盖Google系统最近的所有变动,包括广告系列结构的变化、出价调整器、重定向、视频广告功能、全新......一起来看看 《Google 广告高阶优化(第3版)》 这本书的介绍吧!