您成功重定向:
$('#save_sale').click(function() { var save_sale = 1; $.ajax({ type: 'GET', url: 'summary.php', data: {save_sale: save_sale}, success: function(data) { window.location.href = 'addcust.php?new_sale=' + data }, error: function(xhr, ajaxOptions, thrownerror) { } });});无论您从PHP脚本回显什么,都将在中
data。因此,echo
$sale_id,您将获得您的URL。



