【问题标题】:Google PlusOne Button has errors on ChromeGoogle PlusOne 按钮在 Chrome 上出现错误
【发布时间】:2013-03-05 02:28:14
【问题描述】:

Google PlusOne 在 Chrome 上出现错误:

Uncaught ReferenceError: iframes is not defined fastbutton:19
Uncaught ReferenceError: iframes is not defined fastbutton:19
Uncaught TypeError: Cannot read property 'plusones' of undefined (program):66
Uncaught TypeError: Object #<Object> has no method 'hefn' fastbutton:16

[不那么]有趣的部分是它可以在 IE 和 FireFox 上运行。

我还应该补充一点,它可以正常工作一段时间,我现在只看到这些错误。不知道发生了什么变化。

有什么想法吗? TIA

附言我在那个页面上也有 jQuery 和一个简单的 Modernizr。

【问题讨论】:

  • 我也收到了。

标签: javascript google-chrome google-api google-plus-one


【解决方案1】:

您可能阻止了第 3 方 cookie。为了在我的 Chrome(版本 26.0.1410.43)上进行测试,我添加了以下例外:-

  • apis.google.com
  • plusone.google.com
  • clients6.google.com
  • gstatic.com

在那之后 +1 按钮对我有用。

问候,

丹

【讨论】:

  • 我确实阻止了 3rd 方 cookie,但直到最近,Google+ 按钮在启用该设置的情况下仍能正常工作。此外,FB Like、Tweet 和 PinIt 按钮在禁用这些 cookie 的情况下也能正常工作。谷歌肯定至少可以和其他社交网络一样好?
  • 看起来这个按钮需要的唯一例外是:plusone.google.com -- 谢谢!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-03-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多