获取值
for (var i = 0; i < dataObj.rows.length; i++) {//循环遍历出json对象中的每一个数据并显示在对应的td中
trStr += '<tr class="example">';//拼接处规范的表格形式
trStr += '<td width="15%">' + dataObj.rows[i].RowNumber + '</td>';//对应数组表的字段值
trStr += '<td width="15%">' + dataObj.rows[i].Theme + '</td>';
trStr += '<td width="15%">' + dataObj.rows[i].MeetRoomId + '</td>';
trStr += '<td width="15%">' + Time(i)+ '</td>';
trStr += '<td width="15%">' + dataObj.rows[i].attendee + '</td>';
trStr += '<td width="15%">' + dataObj.rows[i].MainBranch + '</td>';
trStr += "<td width=\"15%\"><input type=\"button\" value=\"下载文件\" id=\"FileDownload\" name=\"' + dataObj.rows[i].DateNmae + '\" ></td>";
trStr += "<td><a href='#'style='text-decoration:none' onclick='Delete(\"" + dataObj.rows[i].RowNumber + "\")'>删除</a><td>";
trStr += '</tr>';
}
单击事件
$("#FileDownload").click(function () {
alert("sss");
})
$(document).on("click","#FileDownload",function(){alert("sss");});
谢谢大佬