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
更多内容请查看发布公告。 |