gpt4 book ai didi

javascript - 在 Chrome 的 Javascript 中使用 Android 共享 Intent ?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:42:04 25 4
gpt4 key购买 nike

我想在 Android 版 Chrome 中通过 Javascript 调出 Android 共享菜单。我知道您可以从 Chrome 启动特定应用程序: https://developers.google.com/chrome/mobile/docs/intents

有没有办法使用 href="intent://..."打开共享菜单?这是在应用程序中完成的方式:http://developer.android.com/training/sharing/shareaction.html

最佳答案

navigator.share 作为 experimental technology在 MDN 中提到。

Google Developers page. 中也有更多描述

从 chrome 61 你可以做到这一点,这里是 demo I found online .我已经在最新的 Android Chrome(在 Android Oreo 上)上对其进行了测试,它运行良好。

关于javascript - 在 Chrome 的 Javascript 中使用 Android 共享 Intent ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19284726/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com