只需要指向 https://twitter.com/share?url=<你的链接> 和其他一些属性,就可以添加一个推文按钮而无需使用推文按钮代码。
https://twitter.com/share?url=<你的链接>
https://twitter.com/share?url=http://www.google.com&text=This is awesome!
window.open()
target="_blank"
<a href="https://twitter.com/share?..." onclick="window.open(this.href);return false;">Tweet</a>
https://twitter.com/share?url=http://www.google.com&text=This is awesome!
。 - Tom van der Woerdtwindow.open()
或target="_blank"
的代码中? - Tom van der Woerdt<a href="https://twitter.com/share?..." onclick="window.open(this.href);return false;">Tweet</a>
。 - Tom van der Woerdt