Javascript Google Plus按钮未显示:FireBug显示一个;网络错误:找不到404“;

Javascript Google Plus按钮未显示:FireBug显示一个;网络错误:找不到404“;,javascript,html,google-plus,social-media,Javascript,Html,Google Plus,Social Media,我想在我的网站上显示Google Plus(Google+)按钮。在我的网页上,我有: <g:plusone size="tall"></g:plusone> 在我的生产站点上,这是一个本地和在线的问题 有人知道如何解决吗?您可以使用以下代码: <div class="g-plusone" data-annotation="inline" data-width="300"></div> 结果:解决了我的问题。谢谢 "NetworkError:

我想在我的网站上显示Google Plus(Google+)按钮。在我的网页上,我有:

<g:plusone size="tall"></g:plusone>
在我的生产站点上,这是一个本地和在线的问题


有人知道如何解决吗?

您可以使用以下代码:

<div class="g-plusone" data-annotation="inline" data-width="300"></div>

结果:

解决了我的问题。谢谢
"NetworkError: 404 Not Found - https://plus.google.com/_/apps-static/_/js/gapi/gcm_ppb,googleapis_client,plusone/rt=j/ver=tfhAJ-U7Vlc.da./sv=1/am=!brN6X75-Zu-IDRYPeA/d=1/cb=gapi.loaded0"
<div class="g-plusone" data-annotation="inline" data-width="300"></div>
window.___gcfg = {lang: 'da'};

(function() {
   var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
   po.src = 'https://apis.google.com/js/plusone.js';
   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();