开发工具与关键技术:VS、MVC
作者:何德润
撰写时间:2019.8.15
要在layui表格上显示图片,我的做法是首先自定义一个函数,获取对应数据的ID值,然后根据ID值去控制器页面查询出对应图片。之后再返回图片在layui数据表格上。
视图页面代码:
driver.render({
elem: "#driver",
url: "Selectdriverxinxi",
cols: [[
{ type: 'radio' },
{ field: 'pilotName', title: '姓名', align: 'center' },
{ field: 'pilotPhone', title: '联系电话', align: 'center' },
{ field: 'DriverIDNumber', title: '身份证号', align: 'center' },
{ field: 'drivernumber', title: '从业资格证号', align: 'center' },
{
field: 'piloPhoto', title: '像片', align: '