File tree Expand file tree Collapse file tree 3 files changed +27
-7
lines changed
src/BootstrapBlazor.Server Expand file tree Collapse file tree 3 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 11@page " /host-model"
2+ @inject IOptions <WebsiteOptions > WebsiteOption
23
34<h3 >ASP.NET Core Blazor 托管模型</h3 >
45
56<p >目前 ASP.NET Core Blazor 的托管模型一共有三种,分别是</p >
67
78<ul class =" ul-demo" >
8- <li >Blazor Server</li >
9- <li >Blazor WebAssembly</li >
10- <li >Blazor Hybrid</li >
9+ <li >< a href = " https://learn.microsoft.com/en-us/aspnet/core/blazor/hosting-models?wt.mc_id=DT-MVP-5004174#blazor-server " target = " _blank " > Blazor Server</ a > < b class = " text-danger " >(新手强烈推荐)</ b > </li >
10+ <li >< a href = " https://learn.microsoft.com/en-us/aspnet/core/blazor/hosting-models?wt.mc_id=DT-MVP-5004174#blazor-webassembly " target = " _blank " > Blazor WebAssembly</ a > </li >
11+ <li >< a href = " https://learn.microsoft.com/en-us/aspnet/core/blazor/hosting-models?wt.mc_id=DT-MVP-5004174#blazor-hybrid " target = " _blank " > Blazor Hybrid</ a > </li >
1112</ul >
1213
13- <p >更多详细资料请查看微软官网文档 <a href =" https://learn.microsoft.com/zh-cn/aspnet/core/blazor/hosting-models?view=aspnetcore-10.0&wt.mc_id=DT-MVP-5004174" >[传送门]</a ></p >
14-
1514<p ><b >目前我们推荐使用 <code >Blazor Server</code > 托管模型</b ></p >
1615
17- <p >使用 <code ></code ></p >
16+ <p >使用最新版 <code >Visual Studio</code > 新建 <code >Blazor</code > 项目时选择 <code >Blazor Web App</code ></p >
17+
18+ <img src =" @WebsiteOption.Value.GetAssetUrl(" images /blazor-web-app.png " )" style =" width : 100% ; max-width : 780px ;" />
19+
20+ <p ><code >Interactive render mode</code > 又分为以下几种方式</p >
21+
22+ <ul class =" ul-demo" >
23+ <li >None</li >
24+ <li >Server <b class =" text-danger" >(新手强烈推荐)</b ></li >
25+ <li >WebAssembly</li >
26+ <li >Auto</li >
27+ </ul >
28+
29+ <p ><code >Interactivity Location</code > 又分为以下两种方式</p >
30+
31+ <ul class =" ul-demo" >
32+ <li >Per page/component</li >
33+ <li >Global <b class =" text-danger" >(新手强烈推荐)</b ></li >
34+ </ul >
35+
36+ <Video Name =" hosting" />
Original file line number Diff line number Diff line change 322322 "dockview2/layout" : " BV1sW421d74o" ,
323323 "icon" : " BV1jx4y1s73i" ,
324324 "mask" : " BV16E421w7vD" ,
325- "global-option" : " BV17T421k7U1"
325+ "global-option" : " BV17T421k7U1" ,
326+ "hosting" : " BV1BD4y1Y7fg"
326327 },
327328 "link" : {
328329 "AntDesign" : " http://www.antblazor.com/?from=blazor.zone" ,
You can’t perform that action at this time.
0 commit comments