问个弱弱的问题,关于MVC的
<%:Html.LabelFor(u => u.username)%><br />
<%:Html.TextBoxFor(u => u.username)%><br />
结果为什么是
LabelFor 的值为 “username”
TextBoxFor 的值为 真实的用户名
这是生成的html
<label for="username">username</label><br />
<input id="username" name="username" type="text" value="newif" /><br />
刚学mvc ,哪个大哥来解惑。