用的是这段代码
Model.prototype.grid1CellRender = function(event) {
if (event.colName === "fFJ" && event.colVal !== undefined) {//判断是附件这列并且有值
var jsonList = eval("("+event.colVal+")");//把值转换为json对象
var html = "";
if (jsonList.length > 0) {
for (var i = 0; i < jsonList.length; i++) {//遍历json对象获取doc相关的信息
var fileID = jsonList["fileID"];
var fileName = jsonList["docName"];
var docPath = jsonList["docPath"];
html += 显示图片
}
return event.html = html;
}
} };