Ghost32 - 安全的系统软件下载站!

ghost32怎么安装系统|装机必备|最新专题|最近更新

当前位置:首页 > IT资讯 > 谷歌

Chrome 75 Beta 发布 Web共享功能支持共享文件

时间:2019-05-07 09:55:14 来源: 点击:
手机扫码继续观看
Chrome 75 Beta 发布 Web共享功能支持共享文件

Chrome 75 Beta 目前已在 Android, Chrome OS, Linux, macOS 和 Windows 上提供(版本号 Chrome 75.0.3770.18),作为首个测试版,除了对性能和稳定性的改进,更重要的是带来了不少新功能。

Chrome 75 beta 通过引入新的动画构造函数、Web 动画 API 和低延迟的 canvas 上下文以更好地控制动画的创建。在改进 Web RTC 方面,对 FIDO CTAP2 PIN 的支持已被添加到 Web Authentication API,Service workers 支持显示在Chrome 的任务管理工具上。

1.png

 

Web共享现在支持文件

Web Share API现在支持文件。 在过去几年中,我们一直致力于为Web提供本机共享功能。 Web Share API允许Web应用程序调用原生应用程序用户将看到的相同共享对话框。 代码看起来像这样:

 

if (navigator.canShare && navigator.canShare({ files: filesArray })) {

  navigator.share({

    files: filesArray,

    title: 'Vacation Pictures',

    text: 'BarbnHere are the pictures from our vacation.nnJoe',  })

  .then(() => console.log('Share was successful.'))

  .catch((error) => console.log('Sharing failed', error));

} else {

  console.log('Your systems doesn't support sharing files.');

}

如果您已经使用过共享API,那么大部分内容都很熟悉。 如上所述,新功能带来了新方法和新的shareData属性。

上一篇:Chrome 76允许用户在对应App中打开PWA站点连接

下一篇:Google Chrome v74.0.3729.157 正式版发布

相关文章

网友评论(共有 0 条评论)

请自觉遵守互联网相关政策法规,评论内容只代表网友观点,与本站立场无关!

最新评论