从mongodb数据库中检索数据后,结果如下:
{ "_id" : "100", "Test" : [ { "disposition" : "ANSWERED", "count" : 4, "duration" : 444, "billsec" : 419 }, { "disposition" : "BUSY", "count" : 3, "duration" : 28, "billsec" : 0 } ] }
{ "_id" : "101", "Test" : [ { "disposition" : "ANSWERED", "count" : 1, "duration" : 250, "billsec" : 200 }, { "disposition" : "BUSY", "count" : 3, "duration" : 28, "billsec" : 0 }] }
我希望使用EJS模板以以下格式将数据放入表中: enter image description here
我使用了2个循环,但正确显示了所需的格式