Extjs在iframe里实现页面跳转

时间:2021-10-06 19:06:32

 

Extjs在iframe里实现页面跳转

用ext.getCmp方法tabpanel的引用,然后调用它的方法添加啊

var topTab = window.parent.Ext.getCmp('content-panel');           

 if (topTab) {             

    topTab.addFeed(docNo, docNo, TaskUrl);           

 } else {               

    window.location.href = TaskUrl; 

 }