1
如何在一行內的複選框中顯示每個屬性 我有對象要素具有許多屬性,這些屬性是動態分配的,我不想在視圖中對這些屬性進行硬編碼。 所以,現在我有一些像這樣的用一行渲染對象屬性
@Html.CheckBoxFor(model => model.Features.IsRegistered, new { @disabled = "disabled" })
@Html.CheckBoxFor(model => model.Features.IsPhone, new { @disabled = "disabled"
....等等
如何呈現酷似以上這些也是所有對象的屬性,這可能嗎? 感謝