$("#couponStatus li").click(function(){
$(this).parent().find("li a").removeClass("nav-active");
$(this).children().addClass("nav-active");
var defaultColunms = MarketCouponDetail.initColumn();
var table = new BSTable(MarketCouponDetail.id, "/marketcoupon/listpage", defaultColunms);
table.setPaginationType("server");
MarketCouponDetail.table = table.init();
if(this.id=="buyed"){
$('#MarketCouponDetailTable').bootstrapTable('showColumn', 'useTime');
$('#MarketCouponDetailTable').bootstrapTable('showColumn', 'totalPrice');
}else{
$('#MarketCouponDetailTable').bootstrapTable('hideColumn', 'useTime');
$('#MarketCouponDetailTable').bootstrapTable('hideColumn', 'totalPrice');
}
});
bootstrapTable 动态隐藏列
最新推荐文章于 2023-04-27 14:00:22 发布