BootStrap table使用方法分析
作', field: 'action', formatter: operateFormatter, events: operateEvents }]; function operateFormatter(value, row, index) { return ['<a class="edit" href="javascript:void(0)" title="编辑">', '<i class="glyphicon glyphicon-edit"></i>', '</a>','<a class="remove" href="javascript:void(0)" title="删除">', '<i class="glyphicon glyphicon-remove"></i>', '</a>'].join(""); } window.operateEvents = { 'click .edit': function (e, value, row, index) { alert('编辑操作触发'); }, 'click .remove': function (e, value, row, index) { alert('删除操作触发'); } };