Blazor WebAssembly Tutorial: Calling a C# Method from JavaScript

preview_player
Показать описание

#blazor #blazorwasm #blazorwebassembly #javascript #interoperability #webassembly #codingtutorial #coding #programmingtutorial #programming
Рекомендации по теме
Комментарии
Автор

Clarification:
In this simplistic example, you could probably do without the "Index" class in JavaScript and put the code from it inside the exported function, but in more advanced cases (which is what I had in mind), I believe what I showed here would be the right way to go, especially if you wanted to store some instance variables on the JS side.

damiandz