jquery ajax
Posted happygx
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jquery ajax相关的知识,希望对你有一定的参考价值。
$.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的主要内容,如果未能解决你的问题,请参考以下文章