gpt4 book ai didi

google-analytics - Google Embed API Demo window.google.load 不是函数错误

转载 作者:行者123 更新时间:2023-12-03 15:24:40 24 4
gpt4 key购买 nike

我正在关注这里的教程:
https://developers.google.com/analytics/devguides/reporting/embed/v1/devguide

我确定我已经添加了 Client IdJavascript Origin正确。

但是图表没有出现,我收到了这个错误:

Uncaught TypeError: window.google.load is not a function



好像每次运行 execute()都会出现功能

还有其他人遇到这个问题吗?

最佳答案

辗转反侧,终于得到了答案,我所要做的就是添加

    <script type="text/javascript" src="https://www.google.com/jsapi"></script>

到 application.html.erb 文件

关于google-analytics - Google Embed API Demo window.google.load 不是函数错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29892271/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com