datatables数据渲染自定义
"data": "ip",渲染回调函数中的data['ip']字段将传给render函数中的data;render函数的返回内容将代替"data":"ip"渲染到table中的cell中。
columns: [ { "data":"ip", "render": function ( data, type, row ) { return '<a href = "{% url 'host_mess' %}" > ' + data + '</a> '; }, "targets": 0 }, { "data": "online_state" }, { "data": "machine_id" }, { "data": "location" }, { "data": "agent_state" }, { "data": "system" } ]