gpt4 book ai didi

javascript - 外部脚本语法错误

转载 作者:行者123 更新时间:2023-11-28 09:28:52 25 4
gpt4 key购买 nike

我正在 IE 8 中测试网站,但收到此错误消息:

Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://maps.googleapis.com/maps/api/js?key=xxxxxxxxxxxxxx&sensor=false

它被添加到标题中,如下所示:

<script src="http://maps.googleapis.com/maps/api/js?key=xxxxxxxxxxxxxx&sensor=false"></script>

有人知道可能出了什么问题吗?

From console

最佳答案

转到https://code.google.com/apis/console/并确保您有权在您正在使用的域上使用该 API key (可能没有,因为您在本地工作)。如果您的 key 没有显示“允许任何引用者”,您在本地工作时可能必须使用不同的 api key ,然后在部署到实时服务器时可以限制引用者。

关于javascript - 外部脚本语法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13954727/

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