cheche062 abc0201213 laya.ui.DialogManager.prototype._closeOnSide = function() { if (!window.UIConfig.closeDialogOnSide) return; var dialog = this.getChildAt(this.numChildren - 1); if ((dialog instanceof laya.ui.Dialog)) dialog.close("side"); }
庆乐 instance代表创建的弹窗实例 instance.close = function(type = null) {if (!type) return // 这儿加一层限制,所有未知原因的关闭弹窗都不生效this.closeType = type; Laya.Dialog.manager.close(this); }