zoukankan      html  css  js  c++  java
  • jqAjax

     function jqAjax(type, url, dataType, deLoader, fn, d) {   

           var data, flag = false;

           $.ajax({        

             url: url,   

           data: typeof d !== 'undefined' && d[0],     

            //async:false,           

             type: type,          

            dataType: dataType,    

             contentType: typeof d !== 'undefined' && d[1],      

             beforeSend: function () {            

             // if(loadfn) {loadfn();}                 },    

              success: function (d) {            

              data = d;                     if (data.length == 0) { flag = true; }       

              },    

              complete: function (d) {      

                   if (deLoader) { deLoader; }            

                   if (fn) { fn(data); }         

                return flag;         

      },          

               error: function (e) {     

                   console.log('Ins Error At Times!', e);     

                }         

        });

      }

  • 相关阅读:
    十七、oracle 权限
    九、oracle 事务
    十六、oracle 索引
    十九、oracle pl/sql简介
    二十二、oracle pl/sql分类二 函数
    通过HttpURLConnection模拟post表单提交
    八、oracle 分页
    二十一、oracle pl/sql分类一 存储过程
    xStream框架操作XML、JSON
    二十、oracle pl/sql基础
  • 原文地址:https://www.cnblogs.com/ths0201/p/5305038.html
Copyright © 2011-2022 走看看