success:function(data){
alert("success");
//document.getElementById("outtable").innerHTML="<h1>success</h1>";
document.getElementById("outtable").innerHTML=
"<table class='table1'>"+
"<tr>"+
"<c:forEach items='${title}' var='ti'>"+
"<td>${ti}</td>"+
"</c:forEach>"+
"<td>操作</td>"+
"</tr>"+
"<c:forEach items=${empList1} var='list'>"+
"<tr>"+
"<td>${list.id}</td>"+
"<td>${list.deptId}</td>"+
"<td>${list.empName}</td>"+
"<td>${list.empMobile}</td>"+
"<td><input type='checkbox'>"+
"<button id='update'>修改</button>"+
"<button id='delete'>刪除</button>"+
"<button id='add'>增加</button>"+
"</td>"+
"</tr>"+
"</c:forEach>"+
"</table>"
}
想写一个foreach循环,但是除了<table><tr><tr>标签其他的都没有生效,
怎么写?