【发布时间】:2019-04-24 08:14:54
【问题描述】:
我有一个从服务器生成的 pdf 文件,我希望允许用户通过 navigator.share 共享此文件。是否可以共享文件而不是 URL?
navigator.share({
title: 'Web Fundamentals',
text: 'Check out Web Fundamentals — it rocks!',
url: 'https://developers.google.com/web',
})
.then(() => console.log('Successful share'))
.catch((error) => console.log('Error sharing', error));
【问题讨论】:
标签: javascript jquery progressive-web-apps