<script> $(function () { loadInfo(); }) function loadInfo() { $.post("InfoList.ashx", {}, function (data) { var serverData = $.parseJSON(data); var serverDataLength = serverData.length; ; i < serverDataLength; i++) { serverData[i].Name; $("<tr><td>" + serverData[i].Code + "</td><td>" + serverData[i].Name + "</td><td>" + serverData[i].Sex + "</td><td>" + serverData[i].Nation + "</td><td>" +ChangeDateFormat(serverData[i].Birthday) + "</td></tr>").appendTo("#tabList"); } }) } //将序列化成json格式的日期(毫秒数)转成日期格式 function ChangeDateFormat(cellval) { )); < ? ) : date.getMonth() + ; ? " + date.getDate() : date.getDate(); return date.getFullYear() + "-" + month + "-" + currentDate; } </script>