例如有这样一个JSON
{
name : "v2ex",
age : "18",
location : {
city : "北京",
country : "中国"
}
}
在tmpl中如何获得location.city,因为loation不是数组,不能用each
{
name : "v2ex",
age : "18",
location : {
city : "北京",
country : "中国"
}
}
在tmpl中如何获得location.city,因为loation不是数组,不能用each