加一按钮导致 JavaScript 错误
我已经阅读了这里的许多 google plue 一键不起作用的问题,但没有找到答案。
我正在尝试向我的网站添加 google+ 和 facebook 按钮。两者都不起作用,但我现在将重点关注 google 按钮。
每次单击都会导致以下 JavaScript 错误:
Unsafe JavaScript attempt to access frame with URL http://stephenturley.com/blog/details/7 from frame with URL https://plusone.google.com/_/+1/confirm... ...domains, protocols and ports must match.
您可以访问该网站 http://www.stephenturley.com 并亲自查看错误。
I've read through many google plue one button not working questions on here and haven't found an answer.
I'm trying to add a google+ and a facebook button to my site. Neither one is working but I'll focus on the google button for now.
Every time is clicked it causes the following javascript error:
Unsafe JavaScript attempt to access frame with URL http://stephenturley.com/blog/details/7 from frame with URL https://plusone.google.com/_/+1/confirm... ...domains, protocols and ports must match.
You can go to the site http://www.stephenturley.com and see the error for yourself.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我明白了,这是一个简单的错字。我忘记将 http 放入按钮的 href 属性中。
Ok I figured it out, it was a simple typo. I forgot to put http in the href attribute of the button.