以前js拼接字符串有好多 \n \t
不使用ES6
“\n\t”将多行字符串拼接起来:
var roadPoem = 'Then took the other, as just as fair,\n\t' |
使用ES6
``之间就好了:
var roadPoem = `Then took the other, as just as fair, |
微信扫一扫
以前js拼接字符串有好多 \n \t
“\n\t”将多行字符串拼接起来:
var roadPoem = 'Then took the other, as just as fair,\n\t' |
``之间就好了:
var roadPoem = `Then took the other, as just as fair, |
相关推荐