1、
$.ajax({
url: “/ticketorder/SureProof”,
type: “POST”,
data: JSON.stringify({ id: id }),
dataType: “json”,
contentType: “application/json; charset=utf-8”,
error: function (msg) { layer.msg(msg, { time: 1000 }); },
success: function (data) {
if (data.bResu == “true”) {
layer.msg(“操作成功”, { time: 1000 }, function () {
window.location.reload();
});
}
}
});
public JsonResult Test(string id) 可以接收到
{
Request[“id”] 接收不到
return View();
}
2、
$.ajax({
url: “/ticketorder/SureProof”,
type: “POST”,
data: JSON.stringify({ id: id }),
dataType: “json”,
error: function (msg) { layer.msg(msg, { time: 1000 }); },
success: function (data) {
if (data.bResu == “true”) {
layer.msg(“操作成功”, { time: 1000 }, function () {
window.location.reload();
});
}
}
});
public JsonResult Test(string id) 接收不到
{
Request[“id”] 接收不到
return View();
}
3、
$.ajax({
url: “/ticketorder/SureProof”,
type: “POST”,
data: { id: id },
dataType: “json”,
error: function (msg) { layer.msg(msg, { time: 1000 }); },
success: function (data) {
if (data.bResu == “true”) {
layer.msg(“操作成功”, { time: 1000 }, function () {
window.location.reload();
});
}
}
});
public JsonResult Test(string id) 接收得到
{
Request[“id”] 接收得到
return View();
}
4、
$.ajax({
url: “/ticketorder/SureProof”,
type: “POST”,
data: { id: id },
dataType: “json”,
contentType: “application/json; charset=utf-8”,
error: function (msg) { layer.msg(msg, { time: 1000 }); },
success: function (data) {
if (data.bResu == “true”) {
layer.msg(“操作成功”, { time: 1000 }, function () {
window.location.reload();
});
}
}
});
无法请求