1

私はsweetalert2を実装しました.chrome、firefox、およびmicrosoft edgeではうまく機能します! ただし、サファリでは、アラートは表示されず、サイトが詰まって使用できなくなります。これに関する既知の問題や、実行すべき回避策はありますか?

ボタンとアクションが含まれているため、サイトの機能に不可欠です。そのため、ブラウザがサファリの場合はバイパスできません。

編集: ReferenceError: Can't find variable: Promise in sweetalert.js 行 827 を取得していることがわかりました。

何か案は?ありがとうございました!

私の現在のコード実装:
welcome.blade.php

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/6.6.5/sweetalert2.css"/>
.
..
...    
function loadalert(){
        swal({
            title: 'Welcome to my website!',
            html: 'test message!',
            type: 'info',
            showCancelButton: false,
            confirmButtonText: 'Proceed'
        }).then(function () {

        });
    }
.
..
...
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/6.6.5/sweetalert2.js"></script>
<script src="{{asset('/plugins/sweetalert/sweetalert2.js')}}" type="text/javascript"></script>
4

1 に答える 1