ajax同步异步 async默认为true 异步 async:false, //同步

来源:互联网 发布:linux中etc是什么意思 编辑:程序博客网 时间:2024/05/22 06:54
 $.ajax({
        url:"com.bgy.orgmgr.subjectTeacher.subjectandteacher.queryEmpByDeptId.biz.ext",
        type:'POST',
        data:json,
        cache: false,
        async:false, //同步
        contentType:'text/json',
        success:function(text){
            var returnJson = nui.decode(text);
            if(returnJson.exception == null){  
             }else{
                nui.alert("操作失败", "系统提示");
            }
         }
     });
0 0
原创粉丝点击