【发布时间】:2021-12-24 09:48:44
【问题描述】:
我有一个 MVC 视图,我在其中使用 Yandex 外部 API 进行地址搜索。
这是我必须添加的脚本才能使用 Yandex 服务。
<script src="https://api-maps.yandex.ru/2.1/?apikey=xxxxxxxxxx&lang=ru_RU" type="text/javascript">
有没有办法从后端读取这个脚本 src 而不是直接在视图中使用它,因为它包含 api 密钥?
【问题讨论】:
-
这能回答你的问题吗? How to use restsharp to download file
标签: javascript c# html jquery asp.net-mvc