Javascript 社交共享按钮错误

Javascript 社交共享按钮错误,javascript,html,google-plus,social,socialshare,Javascript,Html,Google Plus,Social,Socialshare,这是CSS代码: 谷歌公司{ 背景#dd4b39; 颜色:白色; } 法兰西{ 填充:20px; 字体大小:30px; 宽度:30px; 文本对齐:居中; 文字装饰:无; 保证金:5px2px; 边界半径:50%; } 这是用于捕获并显示当前url的按钮和JavaScript: var url=window.location.href//捕获当前url 函数fbCurrentPage(){ 打开窗户https://plus.google.com/share“+escape(window.l

这是CSS代码:


谷歌公司{
背景#dd4b39;
颜色:白色;
}
法兰西{
填充:20px;
字体大小:30px;
宽度:30px;
文本对齐:居中;
文字装饰:无;
保证金:5px2px;
边界半径:50%;
}
这是用于捕获并显示当前url的按钮和JavaScript:


var url=window.location.href//捕获当前url
函数fbCurrentPage(){
打开窗户https://plus.google.com/share“+escape(window.location.href)+'&text='+document.title+”via:“+url”,“menubar=no,toolbar=no,resizeable=yes,scrollbars=yes,height=300,width=600”);
返回false;
}
这是谷歌的错误:


检查开放图协议要使用开放图,我必须使用元。此按钮将共享动态内容,因此元标记无法解决此问题。
<style>
.fa-google {
  background: #dd4b39;
  color: white;
}
.fa {
  padding: 20px;
  font-size: 30px;
  width: 30px;
  text-align: center;
  text-decoration: none;
  margin: 5px 2px;
  border-radius: 50%;
}
</style>
<a class="fa fa-google" href="javascript:fbCurrentPage()" target="_blank" alt="share this page"></a>
    <script>
    var url = window.location.href; //Captures the current url


    function fbCurrentPage() {
        window.open('https://plus.google.com/share'+escape(window.location.href)+'&text='+document.title + ' via : ' + url, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');
        return false; 
    }
    </script>