首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

Chrome 66 Beta 发布:CSS 类型对象模型变化

除非另有说明,否则 Chrome 66 Beta 发布的更改适用于 Android,Chrome OS,Linux,macOS 和Windows 。在 ChromeStatus 上查看 Chrome 66 中功能的完整列表。

更新内容:

  • <canvas>的ImageBitmap渲染上下文
  • CSS类型对象模型的更改
  • 异步剪贴板API
  • AudioWorklet

有几个 JavaScript 更改:

  • The Function.prototype.toString() function now returns exactly what is written in the source code. This includes whitespace and other text that may have been used. For example, if there is a comment between the function keyword and the function name, the comment is now returned in addition to the keyword and name.
  • JSON is now a syntactic subset of ECMAScript, which allows line separator (U+2028) and paragraph separator (U+2029) symbols in string literals.
  • The catch clause of a try statement can now be used without a parameter.
  • String.prototype.trimStart() and String.prototype.trimLeft() are now available as the standards-based way of trimming whitespace from strings, in addition to String.prototype.trim() which was already implemented. The non-standard trimLeft() and trimRight() remain as aliases of the new methods for backward compatibility.
  • The Array.prototype.values() method returns a new array iterator object that contains the values for each index in the array.

更多内容可查看博客

  • 发表于:
  • 原文链接https://www.oschina.net/news/94452/chrome-66-brta-released
  • 如有侵权,请联系 cloudcommunity@tencent.com 删除。

扫码

添加站长 进交流群

领取专属 10元无门槛券

私享最新 技术干货

扫码加入开发者社群
领券