ree*_*rix 7 javascript ecmascript-6 template-strings
我尝试将其分成两行:
const templateString = `this is my template
string`
Run Code Online (Sandbox Code Playgroud)
我也尝试过:
const templateString = `this is my template\n string`
Run Code Online (Sandbox Code Playgroud)
但这些都不起作用。仍然显示templateString为一行。如何创建多行模板字符串?
enf*_*cer -6
这需要一个<br>标签。如果您添加标签,您的第一次尝试就是正确的<br>。
| 归档时间: |
|
| 查看次数: |
24097 次 |
| 最近记录: |