IE中的Sweetalert语法错误

IE中的Sweetalert语法错误

本文介绍了IE中的Sweetalert语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

 SweetAlert-在chrome和firefox中正常工作,但在IE< pre>中无效

我尝试过:

< pre> < a id =downloadhref =#>点击此处下载< / a>

< pre>< script>
$(document).ready(function(){

$(#download)。click(function(){
Swal.mixin({
输入:'email',
confirmButtonText:'Next→',
showCancelButton:true,
// progressSteps:['']
})。队列([
{
text:'Please enter Email-Id'
}
])。then((result)=> {< ------------这里生病得到语法错误
if(result.value){
Swal.fire({
title:'All done!',
html:'< pre><代码>< a href =Home / DownloadFile?username ='+ result.value +'>点击此处下载< / a>< / code>

',

confirmButtonText:'取消'

});

}

});



});



});

解决方案




SweetAlert- working fine in chrome and firefox, but not working in IE <pre>

What I have tried:

<pre>  <a id="download" href="#">Click here to download</a>

<pre><script>
    $(document).ready(function () {

        $("#download").click(function () {
            Swal.mixin({
                input: 'email',
                confirmButtonText: 'Next →',
                showCancelButton: true,
                //progressSteps: ['']
            }).queue([
              {
                  text: 'Please enter Email-Id'
              }
            ]).then((result) => {   <------------here ill get syntax error
                if (result.value) {
                    Swal.fire({
                                title: 'All done!',
                        html:'<pre><code><a href="Home/DownloadFile?username='+result.value+'">Click here to download</a></code>

',
confirmButtonText: 'Cancel'
});
}
});

});

});

解决方案




这篇关于IE中的Sweetalert语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 12:07