我一直在寻找其他语言的用法,但发现必须使用特殊字符\ b删除最后一个字符。(如何在控制台应用程序Linux中擦除打印的字符)
对于多次调用console.log()的node.js,这不起作用。
如果我写一个日志:
console.log ("abc\bd");
我得到结果:abd
但是如果我写:
console.log ("abc");
console.log ("\bd");
我得到结果:
abc
d
我的目标是打印一条等待消息,例如:
等待
等待。
等待中..
等待中...
然后再次:
等待
等待。
等等
都在同一行。