table.on('tool(detailDataTable)', function (obj) {
var data = obj.data;
console.info(obj);
switch (obj.event) {
case "Delete":
del(obj);
break;
}
});
function del(obj) {
var oldData = table.cache["tableId"];
oldData.splice(obj.tr.data('index'), 1);
layer.msg("删除成功", { time: 10 }, function () {
table.reload('tableId', { data: oldData, url: '',});
});
}