Blazor 浏览器端打开打印菜单
Blazor browser-side opens print menu
我正在通过 websocket 从 .NET Core app
向 Blazor 客户端发送数据,然后通过互操作,数据进入我的组件。
我不明白为什么当我尝试 Server-Side
时它工作正常,应用程序具有所需的行为,而当将项目更改为 Browser
时,我得到一个 Print Menu
弹出窗口,就像那个以下。 (我有一些#define
,我可以在Server-Hosted
或Browser
之间轻松选择)
Blazor 如何做这个弹出窗口?
当我在打印菜单上按取消时,我在浏览器中收到以下错误消息:
blazor.webassembly.js:1 WASM: * Assertion at
/mnt/jenkins/workspace/test-mono-mainline-wasm/label/ubuntu-1804-amd64/mono/mini/wasm_m2n_invoke.g.h:547,
condition `0' not met
blazor.webassembly.js:1 Uncaught
(in promise) abort(). Build with -s ASSERTIONS=1 for more info.
blazor 如何打开打印菜单?
I do not understand why when i am trying Server-Side it works ok ,the
app has the desired behaviour , while when changing the project to
Browser i get a Print Menu pop-up like the one below.
client-side Blazor 不支持 Websocket。它们仅在服务器上受支持...也许这就是您的 client-side Blazor 行为不端的原因。
我正在通过 websocket 从 .NET Core app
向 Blazor 客户端发送数据,然后通过互操作,数据进入我的组件。
我不明白为什么当我尝试 Server-Side
时它工作正常,应用程序具有所需的行为,而当将项目更改为 Browser
时,我得到一个 Print Menu
弹出窗口,就像那个以下。 (我有一些#define
,我可以在Server-Hosted
或Browser
之间轻松选择)
Blazor 如何做这个弹出窗口?
当我在打印菜单上按取消时,我在浏览器中收到以下错误消息:
blazor.webassembly.js:1 WASM: * Assertion at /mnt/jenkins/workspace/test-mono-mainline-wasm/label/ubuntu-1804-amd64/mono/mini/wasm_m2n_invoke.g.h:547, condition `0' not met blazor.webassembly.js:1 Uncaught (in promise) abort(). Build with -s ASSERTIONS=1 for more info.
blazor 如何打开打印菜单?
I do not understand why when i am trying Server-Side it works ok ,the app has the desired behaviour , while when changing the project to Browser i get a Print Menu pop-up like the one below.
client-side Blazor 不支持 Websocket。它们仅在服务器上受支持...也许这就是您的 client-side Blazor 行为不端的原因。