鍍金池/ 問答/HTML5  Java  HTML/ angular ng-repeat

angular ng-repeat

<div class="storeList curli" ng-repeat="x in storeList">{{ x.count(mid) }}</div>
//js
$scope.storeList = res.group;

數(shù)據(jù):

clipboard.png

能循環(huán)出3個div,但是顯示不出來count(mid)的內容,是不是跟這個()有關?

回答
編輯回答
祉小皓

參數(shù)有()還是用.key, 作死。。。。

2017年7月31日 11:49
編輯回答
魚梓

自問自答吧,經(jīng)過一番查找,已解決:

<div class="storeList curli" ng-repeat="x in storeList">{{ x["count(mid)"] }}</div>
2018年6月10日 03:06