Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 谷歌加一个按钮_Javascript_Html_Css_Google Plus One - Fatal编程技术网

Javascript 谷歌加一个按钮

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

看看我博客的索引页 对于每一篇文章,我想显示收到的文章的数量加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>

您需要在每个div中包含href=“url”

资料来源: