bootstrap table 怎么取到点击事件里的 index
1个回答
展开全部
//initiate TableTools extension var tableTools_obj = new $.fn.dataTable.TableTools(oTable1, { "sSwfPath": "../../assets/js/dataTables/extensions/TableTools/swf/copy_csv_xls_pdf.swf", //in Ace demo ../../assets will be replaced by correct assets path "sRowSelector": "td:not(:last-child)", "sRowSelect": "single", "fnRowSelected": function (row) { //check checkbox when row is selected var aData = oTable1.fnGetData(row); //nice array of cell values module_id = aData.id; module_name = aData.moduleName; module_url = aData.moduleUrl; module_available = aData.available; module_order = aData.moduleOrder; module_parentid = aData.parentName; }, "fnRowDeselected": function (row) {
}
}
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询