模板字面量是字符串字面值,可以用于创建多行字符串,例如:
const MYSTRING = `string text line 1
string text line 2
string text line 3`;
在 Delphi 中,我的实际方法是:
const MYSTRING = 'string text line 1 '+
'string text line 2 '+
'string text line 3';
Delphi有没有像JavaScript中的“模板字面量”一样的功能?
= '字符串行1' + #13#10 + '字符串行2'
等等。 - MartynA