gpt4 book ai didi

api - Uncaught ReferenceError : ufa is not defined using Google visualization API

转载 作者:行者123 更新时间:2023-12-02 01:47:52 25 4
gpt4 key购买 nike

我遇到过因为这个错误导致可视化图表不显示的情况:

Uncaught ReferenceError :未定义 ufa

这是调用js所在的链接。非常感谢!

最佳答案

确保您的网页调用 jsapigoogle.load()一次。从 Google Developer's Site 中引用了以下详细信息

You may be using the Google Loader incorrectly.

Only load jsapi once. No matter how many charts you have on your web page, you should have one and only one call like this:

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

Ideally, call google.load only once, with all the packages you'll need for your web page.

像下面这样加载多个包,

 <script>
google.load("visualization", "1", {packages: ["corechart", "timeline"]});
</script>

关于api - Uncaught ReferenceError : ufa is not defined using Google visualization API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24490764/

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