.net mvc ajax 传递多个对象的方法
参考资料 http://www.cnblogs.com/wubh/p/6253358.html
http://blog.csdn.net/zengweiqiang/article/details/7354006
$.ajax({
type: "post",url: "/Test/testST",
data: JSON.stringify({
model: {
user: "sfds",
password:"66655tttt"
},
testobj: {
name1: "111111",
name2: "2222222"
}
}
),
contentType: 'application/json',
async: true,
success: function (result) {
alert(result);
}
});
public static string getRequestPayload(HttpRequestBase Request)
{
Stream stream = Request.GetBufferedInputStream();
StreamReader sr = new StreamReader(stream);
return sr.ReadToEnd();
}