IJSRuntime
时间: 2024-02-28 14:22:27 浏览: 136
runtime.js
IJSRuntime是一个接口,用于在Blazor应用程序中与JavaScript进行交互。在Blazor组件或页面中,可以通过将IJSRuntime注入来使用它。例如,可以将IJSRuntime注入到Razor组件或页面的属性中,以便在需要时直接使用它。通过调用Invoke方法,可以在IJSInProcessRuntime实例上同步调用JavaScript函数。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ASP.NET Core Blazor: 两种IJSRuntime依赖注入的方式](https://blog.csdn.net/bdbox/article/details/129990791)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [EventHorizon.Blazor.Server.Interop](https://download.csdn.net/download/weixin_42107374/18753521)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Blazor中C#与Javascript的互操作](https://blog.csdn.net/weixin_46295080/article/details/107924579)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文