复制代码 代码如下:
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();
}
}
});