查看我博客的索引页http://www.lowcoupling.com 对于每个帖子,我想显示收到的帖子加1的数量。 我知道我需要使用URL加1,但我看不出如何 考虑
<!-- Place this tag in your head or just before your close body tag. -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-size="tall"></div>
答案 0 :(得分:1)
您需要在每个div中包含href =“ url ”
来源: https://developers.google.com/+/web/+1button/#tag_parameters