日期:2014-05-17 浏览次数:20573 次
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<title>Index</title>
</head>
<body>
<div>
<select>
@foreach (var item in Model)
{
<option value=@item.RoleID>@item.Description</option>
}
</select>
</div>
</body>
</html>
------解决方案--------------------
新建一个 ViewModel:
class xxxViewModel
{
public string 姓名 { get; set; }
public string 呼叫情况备注 { get; set; }
}