如何更改@html.editor
,以便在我要添加新数据时可以输入?
并且@html.editor
在我要编辑时将处于非活动状态吗? (ASP.NET MVC)
@Html.EditorFor(item => data.id,
"DataShow" + (isEdit ? "Edit" : "Add"),
new {
disabled = "disabled",
type = "text",
name = "id MIDTID",
placeholder = "MIDTID Id"
})