【发布时间】:2021-03-16 20:30:24
【问题描述】:
Blazor 具有像这样的 javascript 隔离:
var module = await js.InvokeAsync<IJSObjectReference>("import",./_content/MyComponents/exampleJsInterop.js");
await module.InvokeAsync<string>("showPrompt", message);
是否可以将它与未编组的调用结合使用?我想做这样的事情:
var module = await js.InvokeUnmarshalled<IJSUnmarshalledObjectReference>("import",./_content/MyComponents/exampleJsInterop.js");
await module.InvokeUnmarshalled<string>("showPrompt", message);
【问题讨论】: