我尝试使用以下网址在 Twitter 上分享。
https://twitter.com/share?url=http%3A%2F%2Fwww.google.com
https://twitter.com/intent/tweet?url=http%3A%2F%2Fwww.google.com
然后在共享文本区域上,我可以在 url 之前看到一个空格。这真的很烦人,我无法摆脱它。有谁知道为什么会有空间?
我尝试使用以下网址在 Twitter 上分享。
https://twitter.com/share?url=http%3A%2F%2Fwww.google.com
https://twitter.com/intent/tweet?url=http%3A%2F%2Fwww.google.com
然后在共享文本区域上,我可以在 url 之前看到一个空格。这真的很烦人,我无法摆脱它。有谁知道为什么会有空间?
如果您使用“text”参数而不是“url”进行共享,则不会添加空格。
即
https://twitter.com/intent/tweet?text=http%3A%2F%2Fwww.google.com