码迷,mamicode.com
首页 > Web开发 > 详细

jquery ajax

时间:2018-05-02 13:27:24      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:ESS   before   val   color   data   str   nbsp   .ajax   lis   

  $.ajax({
                    contentType: "application/json; charset=utf-8",
                    type: "POST",
                    url: "/Registration/ManagementProject/DeleteProjectById",
                    dataType: "json",
                    data: {"selectData": that.UserIdArray },
                    async: false,
                    //提交前设置参数
                    beforeSend: function (request) {
                        //request.setRequestHeader("token", $("#token").val());
                    },
                    error: function (request) {
                        console.log(request);
                        alert(request);
                    },
                    success: function (data) {
                        that.projectList = data;
                        console.log(data)
                        if (data.Response.ErrCode == "0") {
                            alert(data.Response.ErrMsg);
                            //清空已选择的数据
                            that.UserIdArray = [];
                            appList.GatProjectList(1);
                        }
                    }
                });

 

jquery ajax

标签:ESS   before   val   color   data   str   nbsp   .ajax   lis   

原文地址:https://www.cnblogs.com/happygx/p/8979453.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!