AngularJS: How to get the key of a JSON Object

后端 未结 4 1395
孤独总比滥情好
孤独总比滥情好 2021-01-31 14:45

I am unsure if this has got anything to do with AngularJS at all and if it is only JSON related.

Anyhow, let us say that we have the following JSON:

$s         


        
4条回答
  •  北恋
    北恋 (楼主)
    2021-01-31 15:07

    As docs state it:

    (key, value) in expression – where key and value can be any user defined identifiers, and expression is the scope expression giving the collection to enumerate.

    {{key}}

提交回复
热议问题