0
嗨,我有以下代码:“网”拒绝发出“关闭”事件的NodeJS
this.stop = function() {
this.server.close();
var thisServer = this;
this.server.on('close',function() {
thisServer.emit('stop');
});
};
使用服务器和调用停止功能后,服务器拒绝 发出“关闭”事件
this.server.on('close',function() {
thisServer.emit('stop');
});
我做错了什么?