使用SweetAlert重定向

时间:2018-12-27 03:36:05

标签: sweetalert

我有一个问题想要引导类似这样的东西

swal({ 
                        title: "Succesed!!!",
                        text: "You create new Barcode, with Barcode " + json_data.barcode + "!",
                        type: "success",
                        confirmButtonText: "OK"
                    },
                    function(){
                        $.redirect(url+"process",
                        {
                            judul: judul,
                            file : urlfile
                        },
                        "POST", "_self");
                    });

但是我的问题是,当它显示警报并且我按OK时,它什么也没做。它只是关闭了警报。有人可以帮我吗?

注意:为什么我使用$.redirect?因为我想使用POST而不是GET发送参数数据,所以我没有使用window.location.hrefwindows.open之类的函数。而该功能$.redirect在我的侧边栏中工作

0 个答案:

没有答案