node.js - nodejs中event如何获取listener函数的返回值?
黄舟
黄舟 2017-04-17 15:28:53
0
0
348

代码如下,请指教:

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

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template