且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Twitter 上共享带有查询字符串的 URL

更新时间:2023-02-26 12:05:12

这可以通过使用 https://twitter.com/intent/tweet 而不是 http://来解决www.twitter.com/share.使用 intent/tweet 功能,您只需对整个 URL 进行 URL 编码,它就像一个魅力.

This can be solved by using https://twitter.com/intent/tweet instead of http://www.twitter.com/share. Using the intent/tweet function, you simply URL encode your entire URL and it works like a charm.

https://dev.twitter.com/web/intents