我有一个问题想要引导类似这样的东西
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.href
或windows.open
之类的函数。而该功能$.redirect
在我的侧边栏中工作