【问题标题】:twitter share button doesn't count properlytwitter 分享按钮计数不正确
【发布时间】:2011-12-26 19:44:23
【问题描述】:

我尝试更改我的 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>

有人可以帮助我吗?

【问题讨论】:

    标签: javascript twitter share


    【解决方案1】:

    您是否尝试在锚标记下添加 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所述

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-28
      • 1970-01-01
      • 2012-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多