为什么ajax返回之后就无法打开一个窗口?
代码:
$.ajax( {
url: '/fb/index.php',
data:{data: 1},
type:'post',
success:function(data) {
window.open("http://www.jb51.net");
},
error : function() {
console.log("error2");
}
});
为什么没有打开新的窗口呢,求指教??