[Raobin] Ext.net在多重子父窗体中找到当前窗体的父窗体,并关闭IFrame父窗体

var closeParentWindow = function () {
var currentWin = window;
while (top != currentWin) {
var prentExt = currentWin.parent.Ext;
var fElement = prentExt.get(currentWin.frameElement);
var windowElement = fElement.up(‘div.x-window‘);
if (windowElement) {
var winId = windowElement.id;
var extWin = prentExt.getCmp(winId);
extWin.close();
return true;
} else {
currentWin = currentWin.parent;
}
}
return false;
}

[Raobin] Ext.net在多重子父窗体中找到当前窗体的父窗体,并关闭IFrame父窗体

上一篇:利用github for windows 工具将本地的内容同步到github上


下一篇:Winform中DataGridView的DataGridViewCheckBoxColumn使用方法(选中与选不中)