简体   繁体   中英

Implementing js-script into component in Blazor

Can you please explain how to integrate the script like this:

<script type="text/javascript" charset="utf-8" async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A1d532a41650954ba7f9ebe8975d9ebff1be172d29fb570d1b8c94fb9bfb45c66&amp;width=500&amp;height=720&amp;lang=ru_RU&amp;scroll=true"></script>

I want to have this script in the Blazor's component because I need to show the map on one page

您需要在 Page/_Layout.cshtml 文件中添加此脚本标签才能使用此脚本。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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