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

 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>';


在代码末尾

09-20 21:12