在数据存放图片地址,如何在bootstrap的table中进行显示
把图片链接放到img标签的src属性上
img
src
查尔斯、yangxiangming 说的都对,但是放在什么位置?或者是我没有表述清楚!下面是我处理的 (头像图片) columns: [ { field: 'imgUrl', title: '头像', align: 'center', formatter: function(value,row,index){ return '<img src="//www.baidu.com/img/baidu_jgylogo3.gif" class="img-rounded" >'; } }, { field: 'id', title: 'test4', align: 'center' }, { field: 'employeeName', title: 'test3', align: 'center' }, { field: 'departId', title: 'test2', align: 'center' }, { field: 'docroomId', title: 'test1', align: 'center' }]
难道不是放一个img html标签?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(3)
把图片链接放到
img
标签的src
属性上难道不是放一个img html标签?