modal 多层弹窗 Maximum call stack size exceeded 解决方法

 

需要添加如下代码:

//作用:在弹窗里面再弹窗,浏览器console报错:Uncaught RangeError: Maximum call stack size exceeded,
$.fn.modal.Constructor.prototype.enforceFocus = function () { };

 

$(function () {
   
    //作用:在弹窗里面再弹窗,浏览器console报错:Uncaught RangeError: Maximum call stack size exceeded,
    $.fn.modal.Constructor.prototype.enforceFocus = function () { };
   
});

 

posted @ 2020-05-27 11:21  秋飘  阅读(571)  评论(0编辑  收藏  举报