var levelList = EnumEx.GetIntValues(CarConst.CustomCarType.Bus.GetType()); foreach (var level in levelList) { var en = (CarConst.CustomCarType)level; var leveldescript = ((en).GetAttribute<DescriptionAttribute>()).Description; <option value="@level">@leveldescript</option> }
时间: 2024-10-10 21:17:26