bootstrap-table 刷新页面数据

bom.bootstrapTable('load',msg['object']);//这一步 务必要添加。
    if(msg['code']==1){
        bom.find('tbody').css('display','table-row-group')
        bom.bootstrapTable({
          data: msg['object'],
          columns: columns,
          resizable: true,
          cache:false,
          pagination: true,
          sidePagination: 'client',
          pageNumber: 1,
          pageSize: 10,
          pageList: [10,20,50,'All'],
          showColumns: true,
        });
    }else{
      bom.find('tbody').css('display','none')
      console.log('暂未获取到用户数据')
    }

  

猜你喜欢

转载自www.cnblogs.com/MainActivity/p/8986892.html