ajax请求.net后台接收
2021-04-12 10:27
标签:try reload org one turn list net res value js 后台 ajax请求.net后台接收 标签:try reload org one turn list net res value 原文地址:https://www.cnblogs.com/wangyinlon/p/12399096.html function upOne() {
var check_val = [];
var cId = document.getElementById("updateClassIdOne").value;
console.log(cId);
var UpdateClass = {
id: cId,
userId: $("#OneUpdate").val(),
organId: cId,
title: "学生"
}
check_val.push(UpdateClass);
console.log();
$.ajax({
url: "/School/updateUserClass",
data: {
userModel: check_val
},
type: "Post",
dataType: ‘json‘,//必须
success: function (r) {
alert(r.result.msg);
location.reload();
},
});
}
public async Task