- 图片预览
$.table.imageView
{
field: 'avatar',
title: '用户头像',
formatter: function(value, row, index) {
return $.table.imageView(value);
}
}
如果上面这种方式不能满足你的需求,可以自定义图片的宽度和高度。
{
field: 'carouselImg',
title: '图片地址',
formatter: function(value, row, index) {
return '<img width="200" height="100" src="' + value + '"/>'
}
}
最后
以上就是迷你爆米花最近收集整理的关于若依前端table中如何显示图片?的全部内容,更多相关若依前端table中如何显示图片内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复