必须要有checkbox:true和singleSelect:true,然后就可以通过var row=$("#mytab").bootstrapTable('getSelections');获取行数据了,使用时因为是单行选中所以需要row[0].列名方式取值 如下加粗加大的代码 function edit(){ // 获取当前行 var row=$("#mytab").bootstrapTable('getSelections'); alert(row[0].pro
function getchcount(query: TADOQuery): Integer;var i:integer;begin i:=0; with Query do begin Query.First; while not Eof do begin if Query.FieldByName('S_FLAG').AsBoolean then i:=i+1; next; end; end; Result:=i; //返回行数,integerend; procedure TXJBoxForm.