twitter分享按钮不算数

时间:2011-12-26 19:44:24

标签: javascript twitter share

我尝试更改我的IP,然后再次分享,但仍然没有计算。

我的代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<title>:: my test ::</title>
</head>
<body>

<a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical">Tweet</a>

</body>
</html>
有人可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

您是否尝试在锚标记下添加JavaScript。

<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id))
{js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}
(document,"script","twitter-wjs");</script>

https://dev.twitter.com/docs/tweet-button

所述