ajax怎么打开新窗口具体如何实现
来源:
中文源码网 浏览:129 次 日期:2024-05-13 22:37:44
【下载文档: ajax怎么打开新窗口具体如何实现.txt 】
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(); } } });