これは、テーブルに表示する必要がある残りのサーバーの出力です。
{"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はテーブルとしてレンダリングされましたが、データはありませんでした。私のコードで何が間違っている可能性がありますか?