关于前端:获取当前页面显示的eldialog元素

28次阅读

共计 167 个字符,预计需要花费 1 分钟才能阅读完成。

判断以后整个 vue 利用中是否有弹窗在显示,代码:

$("div.el-dialog__wrapper").each(function(i) {if ($(this).css("display") !== "none" && $(this).css("position")==='fixed') {console.log($(this)[0])
  }
});

正文完
 0