layui layer.open() 弹层开启后 Enter回车 遮罩层无限弹处理

解决方案:

增加success回调及其内容 如下:

 1        layer.open({
 2         title:'更新论坛信息',
 3         type: 1,
 4         skin: 'layui-layer-rim', 
 5         area: ['500px', '580px'], 
 6         content: $('#test11111'),
 7         success: function () {
 8             $(':focus').blur();
 9         }
10       });

 

posted @ 2019-03-20 16:40  &执念  阅读(2770)  评论(1编辑  收藏  举报