0
这里即时通讯新的jquery请帮助我为什么我不能够2我的数据附加到表 在此代码即时能够从数据库中获取数据和它的存储在val
但为什么val.Emp_Id
没有约束力数据为什么我的jQuery表没有附加数据val.EmpID
$(document).ready(function() {
$('#BtnData').click(function() {
$.ajax({
url: '/Query/LoadingData2',
method: 'GET',
dataType: 'Json',
success: function (data) {
var $table = $('<table/>').addClass('table table-responsive table-striped table-bordered');
var $header = $('<thead/>').html('<tr><th>Emp_Id</th></tr>');
$table.append($header);
$.each(data, function (i, val) {
var $row = $('<tr/>');
$row.append($('<td/>').html(val.Emp_Id));
debugger;
});
$('#updatePanel').html($table);
},
error: function() {
alert('Error...');
}
})
})
})
欢迎StackOverflow上。你的问题不会吸引好的答案,因为它不清楚问题是什么。请阅读此内容,然后重新编辑您的问题以获取清晰度:https://stackoverflow.com/help/how-to-ask – jdv