我需要在 html 表中添加一个复选框,我知道通常的方法,例如
<td>
<input type="checkbox" name ="chk1" />
</td>
我目前的代码是
string html="";
html += "<table>";
html += "<tr><th>" + "A" + "</th><th>" + "B" + "</th><th>" + "C" + </th></tr>";
html += "<tr><td>" + "0" + "</td><td>" + "1" + "</td><td>" + "2" + </td></td>+"<input type="checkbox" name ="chk1" /> " +</td> </tr>";
html += "</table>";
但这给出了一个错误