谷歌加一的网页上按钮刷新与AJAX [英] Google plus-one button on a page that is refreshed with AJAX
本文介绍了谷歌加一的网页上按钮刷新与AJAX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是任何人都知道的一些$ C $下谷歌的加一个按钮,将工作的刷新与AJAX页面上?这是与Facebook很简单,但我不能找到有关这个对谷歌的任何文件建立。
Is anyone aware of some code for Google's plus-one button that will work on a page that is refreshed with AJAX? It was very simple with Facebook, but I can't find any documentaion about this for Google.
感谢。
推荐答案
我在寻找这一点,发现这个
I was searching for this too and found this
<!-- 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">
{parsetags: 'explicit'}
</script>
<!-- Place this tag where you want the +1 button to render -->
<g:plusone></g:plusone>
<!-- Place this render call where appropriate -->
<script type="text/javascript">gapi.plusone.go();</script>
gapi.plusone.go();
将此code和按钮,会出现
gapi.plusone.go();
place this code and the button will appear
这篇关于谷歌加一的网页上按钮刷新与AJAX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文