Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您可以使用该模块删除单个字符process.stdout,但是如何在不打印单个空格的情况下删除整行?
process.stdout
找不到这个记录,但最终通过运行找到它process.stdout.__proto__。有一个clearLine功能:
process.stdout.__proto__
clearLine
process.stdout.clearLine()