非常感谢!
可能是我没有说明清楚,其实在A01下面,还有A02,A03。。。希望表格能根据传的数据整体扩展,但是我像下面那样传数组过去,发现表格没有办法整块扩展。。。在A上面设了单元格绑定和表格绑定试了都不行。
var data = [
{ AID: 'A01',
B:[
{ Mar: 16, Apr: 20, May: 95},
{ Mar: 58, Apr: 33, May: 60}],
C:[
{CID:"A",Mar:56,Apr:23,May:123},
{CID:"B",Mar:156,Apr:123,May:1123},
{CID:"C",Mar:256,Apr:223,May:2123},
{CID:"D",Mar:356,Apr:323,May:3123},
{CID:"E",Mar:456,Apr:423,May:4123}],
D:[
{DID:"AA",Mar:56,Apr:23,May:123},
{DID:"BB",Mar:56,Apr:23,May:123}],
E:[{Mar:56,Apr:23,May:123},{Mar:56,Apr:23,May:123}]
},
{ AID: 'A02',
B:[
{ Mar: 16, Apr: 20, May: 95},
{ Mar: 58, Apr: 33, May: 60}],
C:[
{CID:"A",Mar:56,Apr:23,May:123},
{CID:"B",Mar:156,Apr:123,May:1123},
{CID:"C",Mar:256,Apr:223,May:2123},
{CID:"D",Mar:356,Apr:323,May:3123},
{CID:"E",Mar:456,Apr:423,May:4123}],
D:[
{DID:"AA",Mar:56,Apr:23,May:123},
{DID:"BB",Mar:56,Apr:23,May:123}],
E:[{Mar:56,Apr:23,May:123},{Mar:56,Apr:23,May:123}]
}
]; |