这是我需要在表中显示的其余服务器的输出:
{"records":[{"id":2,"name":"www.xyz.com","target":"https://www.abc.com/"},{"id":3,"name":"sample1","target":"http://www.google.com/"},{"id":4,"name":"www.aaa.com","target":"http://www.google.com/"}],"queryRecordCount":3,"totalRecordCount":3}
dynatable 的 JS 脚本是:
$(document).ready(function(){
$.ajax({
url: '/org.example.models.Domain',
success: function(data){
$('#my-table').dynatable({
dataset: {
records: data
}
});
}
});
});
加载 html 时,my-table 呈现为表格,但上面没有数据。我的代码可能有什么问题?