jaxa 비동기식 삭제

3278 단어

  
  
  
  
  1. //  
  2. function del(id){ 
  3.     $.messager.confirm(' '' ?'function(val) { 
  4.         if (val) { 
  5.             if(id){ 
  6.                 ZBXTools.showProcess(" , 。。。"); 
  7.                 $.ajax({ 
  8.                   url: "${ctx}/cbeex/transagreement/trans-agreement!delete.action"
  9.                   type: 'POST'
  10.                   cache: false
  11.                   data: 'id='+id, 
  12.                   success: function(data){ 
  13.                     var result = jQuery.parseJSON(data); 
  14.                     ZBXTools.hideProcess(); 
  15.                     if(result.isok=='T'){ 
  16.                         $.messager.alert(' '" "'info'); 
  17.                     }else
  18.                         $.messager.alert(' '" "'error'); 
  19.                     } 
  20.                     $('#dataList').datagrid("load"); // <table id="dataList"></table> easyUI
  21.                   } 
  22.                 }); 
  23.             } 
  24.         } 
  25.     }); 

좋은 웹페이지 즐겨찾기