javascript - Google map js api 在纯 html 页面中工作正常,但在 asp.net mvc 页面中不起作用

标签 javascript c# html asp.net google-api

当我在纯 html 中使用 google map api 时,它工作正常,但是当我将其复制到 asp.net 项目时,它会抛出错误。

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=SECRET_KEY&libraries=places&language=ru-RU"></script>

This API project is not authorized to use this API. Please ensure this API is activated in the Google

最佳答案

我刚刚重新加载 Visual Studio,它就开始工作了???

关于javascript - Google map js api 在纯 html 页面中工作正常,但在 asp.net mvc 页面中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43352301/

相关文章:

c# - 使用 WCF (IIS 7.5) 从数据库获取值时出现系统错误

javascript - 如何让纯文本在点击时充当按钮?

javascript - 使用 D3 更改 shapefile 投影以进行可视化

javascript - 为什么警报 ("1"- - "1");在 javascript 中生成 2?

c# - 反序列化 JSON 颜色十六进制,不带引号

javascript - For 循环和数组

c# - 在 Azure 函数中初始化 AutoMapper

c# - 使用 JavaScriptSerializer 将实体映射到 JSON

javascript通过单击外部隐藏div

jquery - 由自定义 jQuery 验证错误标签引起的不需要的空间