主机百科
测评与优惠

Bootstrap-table获取选中行数据

Bootstrap-table获取选中行数据函数:

1
  function getIdSelections() {      return $.map($table.bootstrapTable('getSelections'), function (row) {          return row.id//返回数据行中的id值      });  }

在需要获取选中行数据的位置调用上述函数即可

1
  var ids = getIdSelections();//返回一个包含所有选中行中id列值的数组

赞(0)
未经允许不得转载:主机阁 » Bootstrap-table获取选中行数据

登录

找回密码

注册