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.
可能重复: 如何创建多行字符串
在 c# 中,我可以这样做:
string str = @"asd dsa blah blah blah";
我怎样才能在 JavaScript 中做同样的事情?+ 每个字符串都是坏主意...
\在每一行的末尾添加一个反斜杠:
\
var string = "Hello\ world\ this\ is\ a string!";