【发布时间】:2015-03-31 20:47:07
【问题描述】:
在我的移动网络中,有一个链接可让您通过 Whatsapp 共享页面。基本上,它是一个锚元素,其href 中有一个whatsapp://send 值。
如果我在 Android 设备上使用它,它可以完美运行,但是当我用我的 iPhone(在 iPhone 5s、iOS 8 和 Safari 上测试过)点击它时,它会打开 WhatsApp 应用程序,但实际上并没有复制分享文本文本字段。
这是我的代码:
<a class="whatsapp" href="whatsapp://send?text=This is the text that I wanna share." data-action="share/whatsapp/share">Share with whatsapp!</a>
这是怎么回事?
谢谢!
【问题讨论】:
-
你试过用
%2C%20替换空格吗? -
@ScottFitsimones 是的,已经做到了,但还是不行!
标签: android html ios iphone whatsapp