【node 报错】
Uncaught TypeError: Cannot read properties of undefined (reading 'messaging')
报错但是可以在浏览器中响应
var http=require('http');
http.createServer(function(req,res){
res.writeHead(200,{'Content-Type':'text/plain;charset=utf-8'});
res.end("hello树哥");
}).listen(8000);
console.log('启动服务器');
console.log('server is running...http://127.0.0.1:8000');
64行使用的message不存在
说你哪行的对应参数不存在,找一下前后端的值是否一致
前端 messaging 的值是undefined,你可以先看看messaging的值从哪里来,一步步解决