search

Home  >  Q&A  >  body text

node.js - nodejs中event如何获取listener函数的返回值?

代码如下,请指教:

stream = evt.on('connection', (stream) => {
  console.log('someone connected!');
  return stream + 1;
});
黄舟黄舟2783 days ago350

reply all(0)I'll reply

No reply
  • Cancelreply