gpt4 book ai didi

javascript - Twitter 分享链接在移动设备上不起作用,但它在桌面上有效

转载 作者:行者123 更新时间:2023-11-29 19:12:35 24 4
gpt4 key购买 nike

问题

我一直在对链接进行硬编码,以便在 Twitter 上分享一条预制的推文——无论是在 block 引用之一还是在一般网站上,都可以在 http://bdnsun.ca/veteransdoc。推文的链接在桌面上有效,但当我尝试在我的 iPhone 上共享相同的链接时,它会将我带到移动 Twitter 网站,而没有预先完成的推文。有解决办法吗?

实时链接:http://bdnsun.ca/veteransdoc

index.html

包含硬编码推文的示例,在这种情况下应为 “所有街道都被封锁了……我们知道我们会被俘虏,”PoW 幸存者 Elmer Cole:http://bdnsun.ca/退伍军人文件

<!-- Blockquote -->
<blockquote>
<p class="quote__text">“All the streets were blocked off and they wouldn’t evacuate us because we had to stay and keep the Germans off the beach. So we knew we was gonna get taken prisoner.” </p>

<div class="quote__person">
<p class="quote__name">Elmer Cole</p>
<p class="quote__title">South Saskatchewan Regiment</p>
</div>

<div class="quote__icon">
<a href="https://twitter.com/home?status=%E2%80%9CAll%20the%20streets%20were%20blocked%20off%20%E2%80%A6%20we%20knew%20we%20was%20gonna%20get%20taken%20prisoner,%E2%80%9D%20Elmer%20Cole,%20PoW%20survivor%3A%20http%3A//bdnsun.ca/veteransdoc" target="_blank" class="link--twitter"title="Share on Twitter"><span class="tooltip-toggle" data-tooltip="Tweet this quote"><i class="icon-twitter fa fa-twitter" aria-hidden="true"></i></span></a>
</div>
</blockquote>

最佳答案

推特已经有一段时间了updated its share link .现在有单独的 texturl 参数:

https://twitter.com/intent/tweet?text=text+to+share&url=https://example.org

专业提示:您还可以提供逗号分隔的标签!

https://twitter.com/intent/tweet?hashtags=one,two,three&text=&url=

关于javascript - Twitter 分享链接在移动设备上不起作用,但它在桌面上有效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37665586/

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