大佬正解~把完整代码给大家附上~- var zCloseTab = function (tabName) {
- var inst=this.parent.TabManager.TabContainer.getCurrentInstance(window),
- t = inst.tabList;
- for (var i = 0; i < t.length; i++) {
- if (t[i].pageName === tabName) {
- inst.closeTab(t[i]);
- break;
- }
- };
- }
复制代码
|