日期:2014-05-16  浏览次数:20459 次

easy ui 的linkButton的问题
   $('#dlg-buttons-ok').bind('click', function(){
                    
                   $.ajax({
                          url:'../servlet/Student_add',
                          data :$('#ff').serialize(),
                          dataType:'json',
                          success:function(data){   
                            if(data.msg=="添加成功"){                //如果登录成功,隐藏登录框   
                              dlg.dialog('close');
                              $.messager.alert('通知',"添加成功"); 
                              $('#dg').datagrid('load',{
                              code: '01',
                              name: 'name01'
                               });
                            }  
                            else
                                 $.messager.alert('通知',data.msg);  
                          }, 
                          error:function(){
                           $.messager.alert('通知',"错误");