我有以下数据,我需要将它传递给数组
coulmns = [
{ field: 'A', caption: 'Date/Time', size: '30%' },
{ field: 'B', caption: 'Measured', size: '30%' },
{ field: 'C', caption: 'Systolic/Diastolic', size: '40%' }
// { field: 'sdate', caption: 'Start Date', size: '120px' }
];
records = [
{ "recid": 1, "A": "01/02/2014 ", "B": "Siting", "C": "141/78" },
{ "recid": 2, "A": "01/02/2014 ", "B": "Siting", "C": "141/78" },
{ "recid": 3, "A": "01/02/2014 ", "B": "Siting", "C": "141/78" },
{ "recid": 4, "A": "01/02/2014 ", "B": "Siting", "C": "141/78" }
]
实际上我有3列名为
1)日期/时间
2)测量
3)收缩/ dystolic
每列都有数据, 现在我想制作一个数组,这样我就可以为各个列绑定数据,首先我需要用硬编码值来做,请建议我怎么能用这个,我用json格式发布的代码,它只是用于数据参考