工作總結 @Html 輔助方法 為 生成的 標簽設置元素屬性 htmlAttributes 一個對象,其中包含要為該元素設置的 HTML 特性。
阿新 • • 發佈:2017-12-22
radi ads als model down new 其中 con change
@Html.RadioButtonFor(m => m.IsJianChe, true, new { @style = "width: 18px; height: 18px;" })是
@Html.RadioButtonFor(m => m.IsJianChe, false, new { @style = "width: 18px; height: 18px;" })否
@Html.DropDownListFor(model => model.SpecialAptitude, Reloadsoft.Literary_PuDong.Wap.Helper.EnumHelper.GetSelectList(typeof(SpecialAptitude), "請選擇", "0"), new { @onchange = "CheckType(this)" })
@Html.LabelFor(model => model.SpecialAptitude, new { @class = "input-group-addon" })
@Html.TextBoxFor(m => m.Name, new { @class = "form-control" })
也可以不寫@
@Html.CheckBox("ShiYiObjects", new { value = "幼兒" })幼兒
工作總結 @Html 輔助方法 為 生成的 標簽設置元素屬性 htmlAttributes 一個對象,其中包含要為該元素設置的 HTML 特性。