zDialog关闭所有弹出的对话框
程序员文章站
2022-03-09 22:26:20
...
function CloseAllzDailog() { var _diag =new Array(); topWin.$("[id^='_DialogDiv_']").each(function(i,obj){ var dialog_id = this.id; var diag = this.dialogInstance; _diag.push(diag); }); _diag = _diag.reverse(); if(_diag.length>0){ for(var i =0;i<_diag.length;i++){ var diag = _diag[i]; diag.close(); } } }