detailFormatter bootstrapTable

detailView : true,//会导致表格最开头多出一列
detailFormatter :function(index, row, element){    var image = '<div class="photos">'
        +'<a target="_blank" href="'+row['jumpUrl']+'"><img alt="image" class="feed-photo" src="'+row['picUrl']+'"></a>'
        +'</div>';
    return image;
},

猜你喜欢

转载自www.cnblogs.com/lichihua/p/10459518.html