layer (jQuery弹出层插件)使用
1 $(".delete").click(function(){ 2 3 var work_name = $(this).data('name'); 4 var item_id = $(this).data('id'); 5 layer.confirm('确定删除该申请吗?', {icon: 3, title: '提示'}, function (index) { 6 $.get( 7 "/office/personner-apply/delete", 8 { 9 item_id: item_id, 10 work_name: work_name 11 }, 12 function (data) { 13 if (data.code == 200) { 14 layer.msg(data.message, {icon: 1}); 15 window.location.reload(); 16 } else { 17 layer.msg(data.message, {icon: 2}); 18 } 19 }, 20 "json" 21 ); 22 }); 23 });