Window.location.href()重定向 Ajax重定向成功响应 成功:函数(json){ 如果(json.status==“成功”) { window.location.href=“”; }

Window.location.href()重定向 Ajax重定向成功响应 成功:函数(json){ 如果(json.status==“成功”) { window.location.href=“”; },ajax,cakephp,Ajax,Cakephp,我正在尝试在ajax成功响应中重定向页面,它正在正确重定向。但我希望页面在新窗口中打开。我如何才能做到这一点?window.open( Ajax redirection in success response success: function(json) { if(json.status == "success") { window.location.href = "<?php echo $this->Html->url(array('controller'

我正在尝试在ajax成功响应中重定向页面,它正在正确重定向。但我希望页面在新窗口中打开。我如何才能做到这一点?

window.open(
Ajax redirection in success response 

success: function(json) {
if(json.status == "success")
{
       window.location.href = "<?php echo $this->Html->url(array('controller' => 'Dashboard', 'action' => 'index')); ?>";
}
'',
“\u blank”//哇,我把路径换成了手动路径,它成功了。谢谢
window.open(
 '<?php echo $this->Html->url(array('controller' => 'Dashboard', 'action' => 'index')); ?>',
 '_blank' // <- This is what makes it open in a new window.
);