我有一个索引数组。如何使用 Handlebars 循环遍历它?我正在使用 #each /each for 循环,但哪个变量是块内分配的值。
我的数据循环是这样的。
{
id: "12424",
title: "Chit Chat with Kimberly Bauer",
description: "Discuss about what's going to happen to Jack Bauer in Season 9 of 24",
from: "12/16/2012 9:00am EST",
to: "12/16/2012 10:00am EST",
duration: "1:00 hr",
invitees: [
"kim@24.com",
"jack@24.com",
"nina@24.com",
"tony@24.com",
"all@no.one"
]
}
我想显示所有受邀者。