18
閱讀the official docs for the readline module,沒有end
事件像其他流。 Trying節點「readline」模塊沒有「結束」事件 - 當沒有更多行時,我該怎麼做?
reader.on('end', cb);
不起作用。
一旦沒有更多的行被讀取,我該如何運行回調?
閱讀the official docs for the readline module,沒有end
事件像其他流。 Trying節點「readline」模塊沒有「結束」事件 - 當沒有更多行時,我該怎麼做?
reader.on('end', cb);
不起作用。
一旦沒有更多的行被讀取,我該如何運行回調?
沒關係,這是close
。
reader.on('close', cb);
讀者沒有,但'reader.input'我認爲有'end'事件 – stringparser