日期:2014-05-17 浏览次数:20449 次
<table class="tab" id="table1" >
<tr class="m-head"><td>序号</td><td>手工编号</td><td>登录名</td><td>姓名</td><td>性别</td><td>出生日期</td><td>民族</td><td>联系电话</td><td>手机</td><td>电子邮箱</td><td>状态</td><td>删除</td></tr>
</table>
$(function () {
var tableStr = "";
var $parent0 = $('#table1');
var result = StaffView.getAllEmployee().value;
var values = jQuery.parseJSON(result);
for (var i = 0; i < values.length; i++) {
tableStr = "<tr><td>" + (i + 1).toString() + "</td><td>" + values[i].Uid.toString() + "</td><td>"
+ values[i].LoginName.toString() + "</td><td>" + values[i].UserName.toString() + "</td><td>"
+ values[i].Sex.toString() + "</td><td>"
+ values[i].Birthday.toString() + "</td><td>" + values[i].Nation.toString() + "</td><td>"
+ values[i].TelPhone.toString() + "</td><td>" + values[i].Mobile.toString() + "</td><td>"
+ values[i].Email.toString() + "</td><td>" + values[i].State.toString()
+ "</td><td><a goid='12123' onclick='DeleteClick()'>删除</a></td></tr>";
$parent0.append($(tableStr));
}
});
function DeleteClick() {
//confirm("确认要删除此行信息吗");
var goid = $(this).attr("goid");
alert(goid);
};