https://github.com/zonciu/blazorjscallexample
A Blazor JSCall example, using G2Plot for demonstration.
https://github.com/zonciu/blazorjscallexample
Last synced: 2 months ago
JSON representation
A Blazor JSCall example, using G2Plot for demonstration.
- Host: GitHub
- URL: https://github.com/zonciu/blazorjscallexample
- Owner: Zonciu
- Created: 2021-04-09T15:48:15.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-09T16:14:39.000Z (about 4 years ago)
- Last Synced: 2024-10-12T07:16:49.195Z (8 months ago)
- Language: C#
- Size: 256 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blazor JS call example
Blazor JS调用示例
## JS调用方式 JS call type
### 1. NativeCall
调用JS原生函数
Call native js function
### 2. DynamicFunction
动态生成JS函数然后调用
Create function dynamically and call
### 3. DotNetInvoke
同步调用.NET方法(只能在wasm模式使用)
Invoke .NET method synchronously (Can only be used in wasm mode)
### 4. DotNetInvokeAsync
异步调用.NET方法
Invoke .NET method asynchronously