BootStrap在一行如何展示多行单据
1.效果图:
2.
{
data :'expenditureBillNo',
render : function(data, type, row) {
var str = '';
var sary=[];
if (data) {
var ary = data.split(',');
for(i=0;i<ary.length;i++){
var $edit = '<a style="text-decoration:none;" class="c-blue" onClick="editExpend(\'' + ary[i]
+ '\')" href="javascript:;">' + ary[i] + '</a>';
sary.push($edit);
}
str = sary.join('\r\n');
}
return str;
}
},{
data : 'expenditureState',
render :function(data,type,row){
var str='';
if(data){
ary=data.split(',');
str=ary.join('\r\n');
}
return str;
}
}