我试图做这样的事情,以便在我的表中显示值:这可能吗? 对不起如果我可能完全搞砸了。我试图理解数据表。
aoColumns: [
{"mRender": function(obj, val, data){
propertySize = data.qaccess.length;
for(i=0; i<propertySize; i=i+1){
col= {
"mDataProp": "qaccess." + i + ".product",
sTitle: "Account Name", sClass: "_accountName", sWidth: "25%"
}
}
}}]
The `data` above returns: out of which im trying to get the value of 'qaccess[0].product' and 'qaccess[1].product' in my table.
. qaccess: Array[2]
. 0: Object
. permissionIdentifiers: Array[0]
. product: "wm.od.prod.nsr"
. roleIdentifiers: Array[0]
. status: "enabled"
. 1: Object
⁃ permissionIdentifiers: Array[0]
⁃ product: "gp.od.dev.nsr"
⁃ roleIdentifiers: Array[0]
⁃ status: "Active"
如何实现qaccess
数组值的值。
这是Json。
"updatedDate": 1408136083695,
"qaccess": [
{
"product": "wm.od.prod.nsr",
"status": "enabled",
"roleIdentifiers": [],
"permissionIdentifiers": []
},
{
"product": "gp.od.dev.nsr",
"status": "Active",
"roleIdentifiers": [],
"permissionIdentifiers": []
}
如果您还需要更多详细信息,请告知我们。谢谢你的帮助!