Is possible : javascript extract value from c:forEach tag?

前端 未结 4 1953
无人共我
无人共我 2020-12-18 11:57


i have populate some values using c:forEach tag. I want to get those values in my javascript.
If I click GetCtag value button, then i want to

4条回答
  •  一向
    一向 (楼主)
    2020-12-18 12:18

    Just print it in JavaScript syntax instead of HTML syntax.

    
    

    So that it end up as valid JavaScript object (assuming that name returns String and age returns Number):

    
    

提交回复
热议问题