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'/>";
}
 
posted @ 2019-08-16 16:55  我是一名搬运工  阅读(687)  评论(0编辑  收藏  举报