我使用请求库来开发服务帖子:
var request = require('request');
request.post(
'http://localhost:3000/carica',
{ json: { id: "", input: 52, rfid:"M2" } },
function (error, response, body) {
console.log(body)
}
);
问题如下:我如何在服务器中提取这些数据?我想处理的信息不是作为json对象而是作为字符串(对于字段rfid)或作为数字类型(对于字段输入)。