if (page != 'Theatres') {
$('.hexagon').removeClass('active');
$(this).addClass('active');
$.ajax({
url: '{{ url("dashboard/user/set-home-page-preference") }}',
data: {
'page': page
},
type: 'GET',
success: function(data) {
alert(data);
}
});
}
我想在警报数据后重定向到一个页面。
答案 0 :(得分:1)
只需在成功部分
中使用window.location.href = "http://stackoverflow.com";
即可