jquery之遍历展示title
//遍历展示title {field:'couponsList',title:'优惠劵类型',width:250,align:'center',sortable:true, formatter:function(value){ if(value.length>0){ var title =''; for(var i=0;i<value.length;i++){ title = title + value[i].couponTypeName + '、'; } title = title.substring(0,title.length-1); return title ; }else{ return '暂无'; } } }, {field:'shareUserAmount',title:'分享者金额',width:250,align:'center',sortable:true, formatter:function(value){ return value +'元/人' } },
无为而治