日期:2014-05-16  浏览次数:21064 次

jquery datagrid
jquery datagrid字段显示为[object Object],这个字段在实体类中是List类型(这个字段是图片的路径)
jquery asp.net

------解决方案--------------------
这个我刚回答过,其实也很简单


{ field: 'headportraitImg', title: '头像', width: 100,
 formatter: function(value, rec) {
    return rec.headportrait.xxx;   
}
}

------解决方案--------------------
field: "headportrait.fileurl", title: "头像路径", width: 100, formatter: function (value, row)
              {
                  if (row.headportrait&&row.headportrait.length>0) {/////
                      return row.headportrait[0]["fileurl"];////////是数组,要取数组项
                  }
              }