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";
    
    评论

报告相同问题?

悬赏问题

  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码