实际上我不太确定G +是否还活着。但是我的网页需要提供这样一个按钮,我可以轻松地谷歌从官方Google文档页面(https://developers.google.com/+/web/share/#example-async-defer)中找到这段代码:
<html>
<head>
<title>Share Demo: Deferred execution with language code</title>
<link rel="canonical" href="http://www.example.com" />
</head>
<body>
<g:plus action="share"></g:plus>
<script>
window.___gcfg = {
lang: 'en-US',
parsetags: 'onload'
};
</script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
</body>
</html>
但它没有工作,没有任何渲染。我几乎认为它只是死亡的信号。是的G +死了,不是吗?奇怪的是,共享链接示例仍然部分工作(它是部分的,因为它似乎无法加载我的共享链接,总是报告无效链接):
<a href="https://plus.google.com/share?url={URL}"
onclick="javascript:window.open(this.href,
'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
<img src="https://www.gstatic.com/images/icons/gplus-64.png"
alt="Share on Google+"/></a>