Chrome JavaScript developer console: Is it possible to call console.log() without a newline?

前端 未结 12 861
生来不讨喜
生来不讨喜 2020-11-29 05:07

I\'d like to use console.log() to log messages without appending a new line after each call to console.log(). Is this possible?

12条回答
  •  温柔的废话
    2020-11-29 05:34

    No, it's not possible. You'll have to keep a string and concatenate if you want it all in one line, or put your output elsewhere (say, another window).

提交回复
热议问题