我正在尝试将一些 html 标记放在一个数组中以便稍后检索。我的编辑器在 description1 行抛出语法错误,我不知道为什么。任何帮助将非常感激。代码如下。谢谢
var modalcontent = {
description1 : '<div id = "description"><div class = "tbc">
<label class = "tbc" for = "tbc">Description</label>
</div>
<div class = "tbc">
<input type = "text" class = "tbc" name = "description" id = "tbc" placeholder = "Enter description">
</div>
</div>
<!--end description div-->'
}