2019-02-27 asp.net core视图组件 asp.net core视图组件 what试图组件是ASP.NET Core MVC中的新特性,类似于部分视图,但是它更加强大。驶入组件不使用模型绑定,并且仅依赖于调用它时所提供的数据。how创建视图组件类using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Web.ViewComponents { [ViewComponent(Name = "TopicRankList")] public class TopicRankList : ViewComponent { public IViewComponentResult Invoke() { return View(); } } } 视图搜索路径视图组件... Laughing 2019-02-27 Java 1,070 阅读 0 评论 2019年02月27日 1,070 阅读 0 评论