<h1>可以同时展开多个互不影响</h1><div><ul><li *ngFor="let i of rankingListData; let idx = index"><p>{{i.name}}</p><div [ngClass]="{'more':thisIndex.indexOf(i.id)==-1}"><span *ngFor="let a of i.arr">{{a}}</span></div><button nz-button type="button"(click)="show(i.id)">{{thisIndex.indexOf(i.id)!=-1 ? '收起':'展开'}}</button><div style="clear:both"></div></li></ul></div>