首页 > Web开发 > 详细

jquery ajax

时间:2018-05-02 12:07:02      阅读:220      评论:0      收藏:0      [点我收藏+]
  $.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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!