Using Jade to iterate JSON

后端 未结 1 1172
再見小時候
再見小時候 2020-12-17 16:16

I am trying to iterate a JSON doc using JADE.

my server(running node.js + express) is doing the following on a .get() request,

app.get(\'/search/\',          


        
相关标签:
1条回答
  • 2020-12-17 16:39

    In your code you are not iterating through the results array, do to so you should do something like this:

    for result in results
         p #{result.name}
    
    0 讨论(0)
提交回复
热议问题