前端ajax请求
$.ajax({
type: "post", url: "/api/sign/checksign2", contentType: 'application/json', data: JSON.stringify({ sign: "mysign",key:"测试" }), success: function (data) { alert(data); console.log(data); } });
后端代码
[HttpPost] [Route("api/sign/checksign2")] public IHttpActionResult CheckSign2(dynamic data) { return Json(data); }