1
@Html.DropDownListFor(
model => model.data,
new SelectList(Model.data, "Value", "Text"),
""
)
如何使它看起來像@ Html.DropDownListFor,如何在選項標籤中添加自定義字段?
<option value="131" value2="a">text1</option>
<option value="132" value2="c">text2</option>