post方式只能接受一个参数而且必须用FromBody特性标识,所以当没有使用FromBody特性标识的时候就会请求失败,如有添加添加了那访问接口时候参数应传对象不能是key:val的格式否则会接收到null.
解决方案:
接收参数如下设置建一个类接收参数
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAk4AAAGZCAIAAADw6CmoAAAbJElEQVR4nO3d3ZWjOAIGUCcxUWwCHV6lsDFsABPgPLAP1UNT+kPCAiNx76lThxJCyJStr6TG7tcymq+vr3cKm9oMyrc/rtvfG9vvucJts8mm4nO9+bgAWJbl9ekOtDkj58r1c5l0LOqCCrv9j3fJOYBWoi59SH0+1Ufdbvu7D0HOARwwUtSdmnPBgV8bQYXYskm1XGHy8MKJ4kch5wCOEXU3NcFDALiJkaLuIXKTPACOEXUATE7UATA5UQfA5ETdB7y+XsntuE5uLwD1Bh5J73xD5hpU269gb+7HQiEAB4w6nvbKuVwavS8Zb+W5WtCZ7l0CeKZRR9KOU7qa5cT6FuLy3PdjbQLQasjxtO/S5WejLjd1E3UAvQw5nl4TdcklxGBpsfyvcZWzuvXHoOXdngNQY7zxtPvdKLt3jmyjqFwhbnZpibrcuQB4x3jj6RlRVy7cXW9889/qRB3AqQYbT894g0FT1CVLRB3AnQ02nn426loXMHN7y1HXeq8mAGUjjaQn5VzhHsj4H/By9XP/1Lc7jVt+xlvNzZkANBlpJL3zx6Mk5cKvcv2zvAuASkZSACYn6gCYnKgDYHKiDoDJiToAJjdw1F12Q+ZN7ucE4JhRo+6knIsr3zznbt49gDsQdd0O/5T79xDgs4aMOjkXGKWfAB8h6krVkuuZq/XH7a6gTrA3KAx2BSXJNpP16x8pwAONF3Wfzbl4u1C4/V4uTG4XwmzoOSjAxURdc5s1CVQfddtmK8NMzgE0GSzqzsi5ZP3y4YWp2HajMup2Z3hBYXm6CUBA1KUP2W3zggXM3U6WawLwbaSoOzXntgcWYiZ3S0hs21quMHl44URx3+QcwC5RV3uiO7htxwDubKSoe7LcJA+AXaIOgMmJOgAmJ+oAmJyoY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9JCgANBDggJADwk6ZyxPAGq4HzTg6QcALIqfSVR4UFENCQrA48XPxZWgTeUAvKHS+KDjW62VvlWCilWA91QamyUsqXH3BB2EJQBLjG4WcBYXgEXZBO2Oz0GCAvAGlq/F7fDIBBWfAEzF94OOJX23hL5VgkpWgPfkmURzxvIEoIYEBYAeEhQAeuyVoKM96geA0+mDAkAPCQoAPe6doMbyBOAstx8f1NMPADjF7ccHlaAAnGJhbJZcYdnpCVooB4BNlMYHve9Z3Fy5WAVgK7fvgw7CEoAz3D5BncUF4BQSFAB6uBYXAHq81/2gkhWArbzXM4kkKABbuXeCAsBZJCgA9DA+KAD00AcFgB4SFAB6XChBXScLwI1k7wf9tNP9oGlYbh6f/+ytUZADUCN+JtH44x4JGkbUWbkVBq0QBWBR9rm4n683T9BLxeeQ76oKUQDK4vFBwwfk1sslaC6W0vJ/vl7jVCgcX6eFuQXT2WYzL64tAAy5PugeCdoUn+nrsHD4np25SsqLx6tVXGcACBJ05cAsQ2MfNCxMczEXdZXlHQkqPgEoyPZBdxqbZRZL5ZSqibqdElR8AlBWuhY3LKlRfy1urgOavm6NwDUJKj4BWFS6H7S7G1p5P2guqHIX+NRcWzQrDK8bCpubrRsAlJ35TKIjs6r7AQsAELrQU/32U7hlBQD6vEWCAsDmjA8KAD3+H7sYN/THU8KcAAAAAElFTkSuQmCC" alt="" />
代码:
$(function () {
$('#btn').click(function () {
var obj = { Id: '1', Name: 'wyb' };
var jsonStr = JSON.stringify(obj);
$.ajax({
type: "Post",
url: "http://localhost:6212/api/wyb/test/post",
data: jsonStr,
dataType: "json",
contentType: 'application/json; charset=utf-8',
success: function (result) {
alert(result.Data.Name)
},
error: function (xhr, type, errorThrown)
{
alert('2')
}
});
});
});
Json.stringify()如果没有引用jquery需要引用json.js或者json2.js