tabBar.selectedIndex = n;
其中selectedIndex是具有焦点的选项卡编号.有没有办法在Jquery中完成这项工作?
不推荐使用select方法,而只是更新活动选项.
您应该通过调用option方法替换对select方法的所有调用,以更改活动选项.
// Activate the third panel $( "#tabs" ).tabs( "option","active",2 );