weixin_33734785 2017-11-21 00:20 采纳率: 0%
浏览 11

在浏览器中加载网址

can I load the url in the browser ?

$(document).ready(function(){
    $(document).on('click','#see',function(){
        var ID = $("#rowid").val();


        $.ajax({
            type:'GET',
            url:'news.php?var='+ID,
            data:'var='+ID,
            success:function(response){  

            }
        }); 
    });
});
  • 写回答

1条回答 默认 最新

  • DragonWar% 2017-11-21 02:24
    关注

    Please clarify, whether you need to redirect to your page (which inside your application) or external url?

    In your success method you can use below,

    //As an HTTP redirect (back button will not work )
    window.location.replace("http://www.example.com");
    
    //if you click on a link (it will be saved in the session history)  
    window.location.href = "http://www.example.com";
    
    评论

报告相同问题?