0

工作代码 错误代码

如何在角度 6的TS test.component.ts中解决这个问题?

4

1 回答 1

0

使用反勾号(``)代替单引号在打字稿中声明多行字符串。

var t=`<div>
    <p>Multiline Tag test</p>
    </div>`;

 console.log(t);
于 2018-10-15T07:21:50.200 回答