我想在google +上分享一篇帖子并使用google + api javascript代码获取评论。请将示例代码发送给我,以便分享并获得相同帖子的评论。
谢谢
答案 0 :(得分:0)
<!-- Place this tag where you want the share button to render. -->
<div class="g-plus" data-action="share"></div>
<!-- Place this tag after the last share tag. -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>