var data = ""; res.on('data', function (chunk) { data += chunk; }) .on("end", function () {
});如果我不写这个事件监听,是不是nodejs内部还是会emit这个data事件多次?不是很理解这个事件的调用过程求科普
欢迎选择我的课程,让我们一起见证您的进步~~
Because it needs to set a fixed memory length to receive messages, it does not receive them all at once, but needs to be entered multiple times
Because it needs to set a fixed memory length to receive messages, it does not receive them all at once, but needs to be entered multiple times