浏览器打开新页面 安全限制解决

http://levi.yii.so/archives/3453

$("#first").click(function(){
    var w = window.open();
    $.ajax({
        type: 'POST',
        url: '/deposit/paypoints',
        success: function(re) {
            w.location = re.url;
        },
        error:function(){
            w.close();
        }
    });
});
原文地址:https://www.cnblogs.com/heboliufengjie/p/5048940.html