📅  最后修改于: 2022-03-11 15:03:00.027000             🧑  作者: Mango
const EventEmitter = require('events');
module.exports = class animal extends EventEmitter {
constructor(){
super();
}
sound(){
this.emit('sound', `miau`);
}
}