$.ajax

  $.ajax({
                                    url: "/DropDownBinder/bindQuota" ,    //请求的url地址
                                    //dataType: "json",   //返回格式为json
                                    async: true, //请求是否异步,默认为异步,这也是ajax重要特性
                                    data: { engconfigId: engconfigId, yearName: yearName },    //参数值
                                    type: "GET" ,   //请求方式
                                    beforeSend: function () {
                                        //请求前的处理
                                    },
                                    success: function (data) {
                                        //请求成功时处理                                       
                                    },
                                    complete: function () {
                                        //请求完成的处理
                                    },
                                    error: function () {
                                                                         
                                    }
              });
 
 
 
 $.ajax({
                        url: "",    //请求的url地址
                        //dataType: "json",   //返回格式为json
                        async: true, //请求是否异步,默认为异步,这也是ajax重要特性
                        data: { IdList: JSON.stringify(lists),type:typeSet },    //参数值
                        type: "GET",   //请求方式
                        beforeSend: function () {
                            //请求前的处理                          
                        },
                        success: function (data) {
                            //请求成功时处理                          
                        },
                        complete: function () {
                            //请求完成的处理
                        },
                        error: function () {

                        }
                    });
 

 

posted @ 2019-05-23 10:45  tommy~hi  阅读(121)  评论(0编辑  收藏  举报