colspan=2 即是合并两个列的为一列,数字不用加引号,
append追加中不能有if 判断,for循环等语句。
$("#table2").append(
"<tr >"+
"<td colspan=2 style='text-align:center;vertical-align:middle;'>"+"<strong>"+p+"</strong>"+"</td>"+
"</tr>"
);
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/106384.html原文链接:https://javaforall.cn