ajax怎么打开新窗口具体如何实现
来源:动视网
责编:小采
时间:2020-11-27 22:52:17
ajax怎么打开新窗口具体如何实现
ajax怎么打开新窗口具体如何实现: 代码如下:var newwindow=window.open('about:blank'); jQuery.ajax({ type: 'POST', url: 'clickRate.action', dataType:'json', data:{ 'appId': appId }, success: function(data){ if (data.s
导读ajax怎么打开新窗口具体如何实现: 代码如下:var newwindow=window.open('about:blank'); jQuery.ajax({ type: 'POST', url: 'clickRate.action', dataType:'json', data:{ 'appId': appId }, success: function(data){ if (data.s

代码如下:
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();
}
}
});
ajax怎么打开新窗口具体如何实现
ajax怎么打开新窗口具体如何实现: 代码如下:var newwindow=window.open('about:blank'); jQuery.ajax({ type: 'POST', url: 'clickRate.action', dataType:'json', data:{ 'appId': appId }, success: function(data){ if (data.s