当我使用下面的代码发出请求我的C#方法没有得到任何数据:
$http({
method : 'POST',
url : ...,
data : {
test : 'hello'
})
.then(function (result) {
console.log('success')
}, function() {
console.log('error')
})
在调试模式下,我能够打的方法,但没有数据与传递请求。
显示你的C#方法请 –
尝试'数据:JSON.Stringify( {test:'hello'})'。什么是测试/ –