我有一个简单的爱可信POST请求:爱可信POST请求通过了所有PARAMS为一体键
const data = JSON.stringify({
to: receiver,
from: sender,
body: message
});
axios.post(window.location.origin + '/sms/outgoing', data)
我的问题是,我的API读取请求体,因为这:
{ '{"to":"12345","from":"54321","body":"message"}': '' }
当我想要它是这样的:
{"to":"12345","from":"54321","body":"message"}
我在哪里出错了?
当你不把你的字符串化TA? – helllomatt
@helllomatt身体是空的 – adc17