Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么当我尝试定义 List 对象时会插入标签名称而不是“T”?
您应该将 @ 之后的所有代码括在括号中:
<td>@(Html.DropDownList("yyy", new SelectList(new List<string>{"",""})))</td>