使用H-ui做一个后台管理页面。该模版使用了datatables表格插件。现在使用ajax请求后台得到的数据格式为:
{
"rows": [
{
"userId": 1,
"userIsaudit": 1,
"userIsuse": 1,
"userName": "admin",
"userPwd": "96E79218965EB72C92A549DD5A330112\r\n"
}
],
"total": 1
}
请问怎么将数据绑定到datatables中?
在aoColumn里面根据data属性绑定即可