且构网

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

在Twitter上与查询字符串共享URL

更新时间:2023-02-26 12:09:14

这可以通过使用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