谷歌+不适用于 jquery
我试图在一个已经有 jquery 的网站中实现 google+,在 firebug 中我收到消息:
“window.googleapisv0 未定义”。
我是这样实现的,
<div id="plusOne-root">
<script src="http://apis.google.com/js/plusone.js" type="text/javascript"></script>
<g:plusone size="medium"></g:plusone>
</div>
我也在谷歌上搜索了这个问题,更多的人遇到这个问题,但在他们的主题中仍然没有解决方案。我希望任何人都可以帮助我。
Im trying to implement google+ in a website that already has jquery in it, in firebug i get the message:
"window.googleapisv0 is undefined".
I've implemented it like this
<div id="plusOne-root">
<script src="http://apis.google.com/js/plusone.js" type="text/javascript"></script>
<g:plusone size="medium"></g:plusone>
</div>
I also searched for the problem on google, more people experience this problem, but in their topics there's still no solution. I hope anyone can help me out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这并不能解决根本原因,但声明此全局可能会阻止抛出错误。
This does not resolve the root cause but declaring this global would likely prevent the error from being thrown.