Javascript 谷歌加一个按钮
看看我博客的索引页 对于每一篇文章,我想显示收到的文章的数量加1。 我知道我需要使用URL加1,但我不知道如何使用 考虑到Javascript 谷歌加一个按钮,javascript,html,css,google-plus-one,Javascript,Html,Css,Google Plus One,看看我博客的索引页 对于每一篇文章,我想显示收到的文章的数量加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> <!-- Plac
<!-- 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>
您需要在每个div中包含href=“url”
资料来源: