5
如何取到List类型的返回值data中某一列的值?
```onChange: function (newValue, oldValue) {
$.ajax({
type: 'post',
url: "/DMS/ProductionData/GetListByEquTy",
data: { newValue: newValue },
async: false,
success: function (data) {
//该如何取值
}
});
``` public List<DMS_EquStopTypeModel> GetListByEquTy(string newValue)
{
List<DMS_EquStopTypeModel> list = new List<DMS_EquStopTypeModel>();
MyCommonHelp mycommonHelp = new MyCommonHelp();
StringBuilder sql = new StringBuilder();
sql.AppendFormat(@"select Id,EquStop_Desc from DMS_EquStop
where EquStop_Type = '{0}'", newValue);
DataTable dt = DBHelp.GetDataTable(sql.ToString());
list = mycommonHelp.ConvertToList<DMS_EquStopTypeModel>(dt);
return list;
}
我有起床气
2019/04/18 14:27- javascript
- jquery
- 点赞
- 收藏
- 回答
满意答案