加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

使用AJAX刷新的页面上的Google plus-one按钮

发布时间:2020-12-16 01:35:23 所属栏目:百科 来源:网络整理
导读:有人知道Google的加号按钮的一些代码,可以在使用 AJAX刷新的页面上工作吗?这是非常简单的Facebook,但我找不到任何关于这个Google的文件. 谢谢. 我也在寻找这个,发现了这一点 !-- Place this tag in your head or just before your close body tag --script
有人知道Google的加号按钮的一些代码,可以在使用 AJAX刷新的页面上工作吗?这是非常简单的Facebook,但我找不到任何关于这个Google的文件.

谢谢.

我也在寻找这个,发现了这一点
<!-- 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();放置这个代码,按钮就会出现

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读