前台:
data: JSON.stringify({
data1:'111',
data2:'222'
}),
contentType: 'application/json; charset=utf-8',
后台:
加上 [FromBody]
public object Validate([FromBody]JObject json)
前台:
data: JSON.stringify({
data1:'111',
data2:'222'
}),
contentType: 'application/json; charset=utf-8',
后台:
加上 [FromBody]
public object Validate([FromBody]JObject json)