var options = {
method: 'POST',
url: '***',
headers: {
'Content-Type': 'text/plain'
},
json: true,
body: "1798612312"
}
body会变成'"1798612312"',就像多了个JSON.stringify
回复 (3)
I
text/plain导致的吧,换成json试试,不过换成json的话你的body也得换格式
S
必须要求是text/plain格式的
A
json: false 啊,你叫他帮你转json了。。。
参与回复
登录后即可参与回复。登录