<div>
...
<div>
<div>
<img />
<!-- 该img里的引用不同-->
</div>
<div >
<div>{{ CountFive.Value }}</div>
<div>{{ CountFive.Name }}</div>
</div>
</div>
<div>
<div>
<img />
<!-- 该img里的引用不同-->
</div>
<div >
<div>{{ CountSex .Value }}</div>
<div>{{ CountSex .Name }}</div>
</div>
</div>
</div>
...
</div>
this.Counts=[
{Value :12,Name:助手},
{},
{},
{},
...
];
this.CountOne = this.Counts[0];
this.CountTwo = this.Counts[1];
this.CountThree = this.Counts[2];
this.CountFour = this.Counts[3];
this.CountFive = this.Counts[4];
this.CountSex = this.Counts[5];
this.CountSeven = this.Counts[6];
this.CountEight = this.Counts[7];
有没有更简洁一点的方法实现这个效果呐?