问题:
I have the following code in Ruby. 我在Ruby中有以下代码。 I want to convert this code into JavaScript. 我想将此代码转换为JavaScript。 what's the equivalent code in JS? JS中的等效代码是什么?
text = <<"HERE"
This
Is
A
Multiline
String
HERE
解决方案:
参考一: https://stackoom.com/question/3NRb/在JavaScript中创建多行字符串参考二: https://oldbug.net/q/3NRb/Creating-multiline-strings-in-JavaScript
来源:oschina
链接:https://my.oschina.net/stackoom/blog/4297170