📜  readline 节点 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:26.596000             🧑  作者: Mango

代码示例2
readline = require('readline').createInterface({
    input: process.stdin,
    output: process.stdout
})

readline.on("line", (line) => {
    if (line === "") {
        // Code
    }
    else if (line === "") {
        // Code
    }
})