Templated Helper Methods
1、Model
2、HomeController
3、CreatePerson.cshtml
禁用了客户端验证
4、Using Templated Helper Methods
Editor 和 EditorFor 是一样的,唯一的区别是EditorFor有只能提示,可以防止输入错误(?)
The type attribute specifies which kind of input element should be displayed by the browser. The helper methods have
specified the number and datetime types for the PersonId and BirthDate properties and the text type, which
is the default for the other properties. The reason that we only see these types in Opera is because the HTML5 features are still not
widely supported, even in the latest version of Internet Explorer and Chrome.
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步