tabulator默认选中,设置点击当前选中项不取消选择
$("#table").tabulator({
height:"92%",
layout:"fitColumns",
columnVertAlign:"bottom",
tooltips:true,
selectable:1,//默认只能选中一行
resizableColumns:false,
movableColumns:false,
columns:[
{title:"序号",field:"id",width:50,formatter:"rownum",align:"center",frozen:false,headerSort:false},
{title:"名称", field:"name", sorter:"string",align:"center",editor:false,headerSort:false},
],
rowClick:function(e, row){
row.select();//设置选中项再次点击后不取消
_curRow = row;
},
});