日期:2014-05-16 浏览次数:20706 次
function getInfo() {
if(req.readyState==4){
$('#contactList tr').remove();
var list = '${contactPersonInfos}';
var html =
'<c:forEach items='${contactPersonInfo}' var="contact">' +
'<tr>' +
'<td>'+($('#contactList tr').length+1)+'</td>' +
'<td>${contact.CUSTOMER_NAME}'+'</td>' +
'<td>${contact.CUSTOMER_SEX}</td>' +
'<td>${contact.CUSTOMER_PROFESSION}</td>' +
'<td>${contact.CUSTOMER_CELL_PHONE}</td>' +
'<td>${contact.CUSTOMER_PHONE}</td>' +
'<td>${contact.CUSTOMER_ADDRESS}</td>' +
'<td>${contact.CUSTOMER_ZIP}</td>' +
'<td>${contact.CUSTOMER_HOBBY}</td>' +
'<td>${contact.CUSTOMER_EASY_TIME}</td>' +
'<td>${contact.CUSTOMER_EASY_CONTACT}</td>' +
'<td>否</td>' +
'</tr>';
'</c:forEach>'
$('#contactList').append(html);
}