1

即使仅在 IE11 中弹出,背景覆盖也不会消失。在 chrome、safari 和 firefox 中运行良好。

      swal({
            title: 'ERROR!',
            text: 'Please check email and/or captcha',
            type: 'error',
            timer: 2000,
            showConfirmButton: false
           }).catch(swal.noop);

见图片图片链接

4

1 回答 1

0

现在的解决方案: 在 IE11 上没有问题

       swal({
            title: 'ERROR!',
            text: 'Please check email and/or captcha',
            type: 'error',
            timer: 2000,
            showConfirmButton: false
           }).then(() => {if (swal.isVisible() === true) {$('.swal2-container').remove() } }, () => {if (swal.isVisible() === true) { $('.swal2-container').remove() } })                     
          .catch(swal.noop);
于 2017-09-11T00:05:48.227 回答