共计 216 个字符,预计需要花费 1 分钟才能阅读完成。
var proxy = new events.EventEmitter()
var status = "ready"
var select = function(callback) {proxy.once("selected", callback)
if (status === "ready") {
status = "pending"
setTimeout(() => {proxy.emit("selected", results)
status = "ready"
}, 2000)
}
}
正文完
发表至: javascript
2022-09-05