Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道为什么处理程序可以是 voidOnGet或.IndexModelreturn Page();
OnGet
IndexModel
return Page();
实际上是做什么的Page()?
Page()
What does Page() actually do?
将通过请求的验证再次显示同一页面。 但是在很多情况下,验证错误会在客户端被检测到并且永远不会提交给服务器
Returning Page 类似于控制器中的操作如何返回 View。