Sri*_*har 2 c# blazor blazor-server-side
最近在创建 blazor 组件时,我遇到了某些问题。
创建组件的最佳方法是什么(本机和或使用现有的 JavaScript UI)
选择 Existing JavaScript 时是否存在性能或内存泄漏。
使用 JavaScript Lib 组件时对服务端 blazor 的任何影响。
两种方法的优缺点是什么?
Blazor 中只有一种方法 - 创建 Blazor UI 组件。Angular 和 Blazor 都是 UI 组件框架。第一个使用 JavaScript,后者使用 C#,尽管您可以在其他情况下使用 JSInterop。
当 C# 代码等待 JavaScript 响应而 JavaScript 代码“不确定要做什么”时,可能会出现一些内存泄漏。在这种情况下,据我所知,Blazor 框架将在一段时间后停止这种废话。
The objective of Blazor is to use JavaScript, as little as possible. Blazor is not a JavaScript framework. And it employs JavaScript in order to communicate with the DOM, at least until Web Assembly is mature enough to enable direct communication with the DOM, without the mediation of JavaScript .
Start learning Blazor... Blazor is awesome... Hope this helps...
| 归档时间: |
|
| 查看次数: |
631 次 |
| 最近记录: |