大家好,所以我有一个收藏品,里面有这样的文件
{
"_id" : "THaD5FbLjghToRHC7",
"ipAdr" : "127.0.0.1",
"connections" : [
{
"connID" : "Sohg3KRSnC2JJJfY8",
"ipAdr" : "127.0.0.1",
"httpHeads" : {
"host" : "localhost:3000",
"userAgent" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36",
"realIP" : null
},
"connectedAt" : ISODate("2016-08-17T13:25:56.882Z"),
"disconnectedAt" : ISODate("2016-08-17T13:26:00.007Z")
},
{
"connID" : "5N6WEgCpe4Qc3cmRD",
"ipAdr" : "127.0.0.1",
"httpHeads" : {
"host" : "localhost:3000",
"userAgent" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36",
"realIP" : null
},
"connectedAt" : ISODate("2016-08-18T06:08:33.213Z"),
"disconnectedAt" : ISODate("2016-08-18T06:11:44.102Z")
},
{
"connID" : "Hxggbanp3bo5nh9mi",
"ipAdr" : "127.0.0.1",
"httpHeads" : {
"host" : "localhost:3000",
"userAgent" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36",
"realIP" : null
},
"connectedAt" : ISODate("2016-08-18T06:25:16.863Z"),
"disconnectedAt" : null
}
],
"createdAt" : ISODate("2016-08-17T13:25:56.882Z")
}
这是我输入终端时的结果
db.ips.find({}).pretty()
现在我希望在Blaze渲染的页面上有相同的结果,但我想不出办法做到这一点。如何使用Blaze以可读和有组织的格式显示大型集合和文档?
答案 0 :(得分:1)