本文为大家介绍下ajax如何打开新窗口,下面有段代码,需要的朋友可以了解下
代码如下:var newwindow=window.open('about:blank');jQuery.ajax({type: 'POST',url: 'clickRate.action',dataType:'json',data:{'appId': appId},success: function(data){if (data.success == true) {newwindow.location.href=url;}else{newwindow.close();}}});