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.
我可以期望文本框中的换行符是常见的换行符约定之一,还是取决于用户的操作系统?
即:CR 或 CR+LF 或 LF
HTML 4.01 规范规定换行符表示为 CR LF 对。
这取决于语言。通常在.NET中你会使用
Environment.NewLine
在 JavaScript 中它会是 "/n"
在 VbScript 中你可以使用“vbNewLine”