0
点赞
收藏
分享

微信扫一扫

若依前端table中如何显示图片?


  • 图片预览​​$.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 + '"/>'
}
}

举报

相关推荐

0 条评论