is "Carriage Return" (CR, ASCII character 13),
is "Line Feed" (LF, ASCII character 10). Back in the days, you had two ASCII characters at the end of each line to tell a printer what to do - CR would tell the printer to go back to the left edge of the paper, LF would advance to the next line.
Operating systems still have different conventions as to what the end of a line looks like -- some of them have
, some have
, some have
.
In Javascript, you mostly deal with
- this is how strings are typically switching to the next line. However, depending on what strings you are working with, you may be encountering
as well. What exactly are you doing?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…