简体   繁体   English

Google Maps JS API在纯HTML页面中可以正常工作,但在ASP.NET MVC页面中不能工作

[英]Google maps js api works fine in plain html page, but doesn't work in asp.net mvc page

When i used google maps api in plain html it was working fine, but when i copied it to asp.net project it throw error. 当我在纯HTML中使用google maps 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. 该API项目无权使用此API。 Please ensure this API is activated in the Google 请确保已在Google中激活此API

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM