如何使用windows phone
中的数据模式params
将json数据发送到api
"url":"
http://rawafedtech.info/tafsir/stable-api/current/web/app_dev.php/dummy/home
","method":"POST","headers":"",
"data":[{"key":"token","value":"1m1","type":"text"},{"key":"pageNo","value":"1","type":"text"},{"key":"pagesize","value":"20","type":"text"}]
,"dataMode":"params"
答案 0 :(得分:0)
尝试添加dataType:'json'
例如
$http({
url: "your url",
method: 'POST',
data: "your json object",
dataType: 'json',
})