Mor*_*ane 5 javascript base64 android share
/*Allow native mobile share of QR */
function shareQROnMobile() {if (navigator.share) {
navigator.share({
title: document.title,
text: document.title + ", " + window.location.href,
url: jQuery("#qrcode-current img")[0].src,
})
.then(() => console.log('Successful share'))
.catch((error) => console.log('Error sharing', error));
}}
/*END native mobile share of QR */
Run Code Online (Sandbox Code Playgroud)
此 JavaScript 代码发送 base64 数据字符串。相反,我希望将此 base64 转换为图像,并将其发送到 Android 共享菜单上的任何应用程序。
如何将 base64 字符串转换为图像并将其发送到共享菜单?
| 归档时间: |
|
| 查看次数: |
855 次 |
| 最近记录: |