{ "id": "c1", "imageUrl": "xxx.png", "name": "牛投網(wǎng)", "industry": "移動互聯(lián)網(wǎng)", "state": "A輪", "people": "50-150人", "positionClass": [ { "id": "jishu", "name": "技術(shù)", "positionList": [ { "id": "p1", "name": "前端工程師", "createdDate": "2020-04-16 23:30", "salary": "15k-25k" } ] }, { "id": "yunying", "name": "運營", "positionList": [ { "id": "y1", "name": "運營總監(jiān)", "createdDate": "2021-04-10 13:30", "salary": "25k以上" } ] } ]}現(xiàn)在有如上一段數(shù)據(jù),使用Angular的ng-repeat循環(huán)到第一層的時候可以,例如:<div ng-repeat="dt in data.positionClass" ng-bind="dt.name"></div>可以循環(huán)得到技術(shù)、和運營兩條數(shù)據(jù)?,F(xiàn)在想再單獨寫一個div,來循環(huán)positionList里面的數(shù)據(jù)<div ng-repeat="pls in positionList" ng-bind="pls.name"></div>這樣怎么取不到值。正確的寫法是什么?
使用Angular怎么讀取數(shù)據(jù)對象內(nèi)數(shù)組的數(shù)據(jù)
素胚勾勒不出你
2018-11-14 13:15:32