jqgrid 表格内 图片展示

colModel :

{name:'picture',align:'center',editable: true,formatter:showPicture,edittype:'file',
editoptions:{enctype:"multipart/form-data"}}

function :
function showPicture(cellvalue){
return "<img src='${pageContext.request.contextPath}/img/" +cellvalue + "' height='100' width='100'/>";
}
 

猜你喜欢

转载自www.cnblogs.com/jia-0112/p/11364978.html
0条评论
添加一条新回复
  
今日推荐