5

如何在 mustache 对象中通过数组获取元素值

    Map(name -> zzzzzzzzzzzzzzz, 
 pageUrl -> /novokuzneck/zum-zum-dvernye-i-okonnye-resheniya/contacts, 
 organiztionUrl -> http://192.168.0.106/c/1245678/, 
 phones -> List(
    Map(phone -> +7333333333, comment -> adsdas), 
    Map(phone -> 81234567, comment -> test), 
    Map(phone -> 822222222, comment -> test2)), 

)

怎么获得

<p>{{phones.0.phone}}</p>
4

1 回答 1

0

尝试

{{#phones}}
      <p>{{index}} {{phone}}<p>
{{/phones}}
于 2021-01-07T09:15:09.813 回答