在前端接收返回数据的时候,加上"\t"解决
table.render({
init: init,
id: 'currentTable',
toolbar: ['refresh', 'add'],
// search:false,
url: '{:url("index")}',
cols: [
[
{
field: 'account_id',
width: 200,
title: '账户ID',
search: false,
templet:function(d){
return d.account_id+"\t";
}
}
]
],
page: {}
});
解决前:
解决后: