<th data-options="field:'partsimage',width:80,align:'center',"formatter:function(value,row,index){return '<img src=" '+row.partsimage+' />
写的不对 求指教
table 加载
<th data-options="field:'partsimage',width:80,align:'center',"formatter:function(value,row,index){return '<img src=" '+row.partsimage+' />
写的不对 求指教
table 加载
复杂的字符串操作不要全部放到dom中,属性都不闭合了。。
<th data-options="field:'partsimage',width:80,align:'center',formatter:getImg"></th>
<script>
function getImg(v, r, index) { return '<img src=" ' +row.partsimage+' " />' }
</script>