{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: function (value, row, index) { var that = $.extend({}, this); var table = $(that.table).clone(true); if (row.is_stock==1){ $(table).data("operate-del", null); $(table).data("operate-edit", null); } that.table = table; return Table.api.formatter.operate.call(that, value, row, index); }} 以上是根据is_stock=1隐藏