0

我面临一个奇怪的问题。我已经使用 alertify 库向用户显示消息,但在这种情况下,alertify 不起作用。这是我的 ajax 调用的成功部分。

  success: function(data) {
       if (data.status == 'success') {
           alertify.success(data.msg);**// this line should dislay a message but instead of calling this , it directly calls employee_details(), data.msg is "Data saved Successfully"**; 
           data.user_type =3;
           if(data.hasOwnProperty('user_type')){
                if(data.user_type==2){
                    employeeDetails(data.id, tab_id);
                }else{
                    employee_details(data.id);
                }
            } else {
                return false;
            }

        }
    }

如果我删除employee_details(data.id),这完美。

4

0 回答 0