setActiveTab (String/Panel tab ) 参数是 tabb本身或者是其ID 不接受title作为参数
所以你可以 把title 和ID 用同一个 字串 就可以达到你要的效果
var items={ title:record.item._text; id:record.item._text; ... }; ... if (arr.indexOf(items.title)==-1){ }else{ panel.setActiveTab(items.title); }