Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法通过使用 id 而不是 selectedIndex 以编程方式选择 tabnavigator 中显示的选项卡?
我想通了。使用以下代码:
tb_all.selectedIndex = tb_all.getChildIndex(tb_calendar);