table.on('tool(hostTable)', function (obj) { var data = obj.data;//须写 if (obj.event === 'del') { var parents = $(this).parents('.elementClass'); operateId = $(parents).attr('id'); layer.confirm('确认删除么', function (index) { 1.找到删除按钮所在的父元素,以确定是哪一个表格tabl…