gpt4 book ai didi

javascript - 未终止的字符串文字错误消息

转载 作者:行者123 更新时间:2023-11-28 21:19:34 25 4
gpt4 key购买 nike

我知道它被问了数百次,但在这种特定情况下,经过一个小时的搜索,我无法发现错误“未终止的字符串文字”背后的原因。这是我的代码..

 newRow.innerHTML = '<td>1</td><td><input type="text" name="quantity' + (num) + '" size="5" /></td><td><input type="text" name="description' + (num) + '" size="50"/></td><td>$<input type="text" name="price' + (num) + '" size="5" /></td><td><input type="text" name="catalognum' + (num) + '" onChange="addRow()"/></td><a class="removelink" onclick=\'removeElement(' + rowIdName + ')\'>Remove This File<

最佳答案

尝试添加:

/a>';

在代码末尾

关于javascript - 未终止的字符串文字错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6739164/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com