var myString = [' ', 'some content ', 'someRefTxt', ' ' ].join('\n');
var myString = ' \some content \someRefTxt \ ';
var myString =
'
\
some content \
someRefTxt \
';
var string = 'This is ' +'multiline' + 'string';
var string = 'This is ' +
'multiline' +
'string';
Reference :
javascript - How to create multiline strings - Stack Overflow
沒有留言:
張貼留言