selectIndex變數移除後未處理
来源:6-3 底部 TabBar 切换路由
慕数据7359240
2020-02-11
scrollable-tab.component.html
這裡有一個變數(selectIndex)
對應不到(scrollable-tab.component.ts)
写回答
2回答
-
慕数据7359240
提问者
2020-02-12
課程中scrollable-tab.component.html裡有一段代碼如下:
<a [ngStyle]="{color: i == selectIndex ? titleActiveColor : titleColor}"
(click)="handleSelection(i)">{{ menu.title }}</a>
這段代碼裡的selectIndex在scrollable-tab.component.ts移除了
但程式是可執行的
00 -
接灰的电子产品
2020-02-11
没明白你的意思,具体说说
012024-03-17
相似问题