Bind to simple array of strings

后端 未结 2 831
北荒
北荒 2020-12-14 05:13

If I want to bind a template to a plain old array of strings, what do I put in the ${??} expression?

I hope this snippet isn\'t too short so as to confuse:



        
2条回答
  •  北荒
    北荒 (楼主)
    2020-12-14 06:12

    For unnamed array (JSON like: ["value1", "value2"]), it would be:

    $root keyword does the trick.

提交回复
热议问题