jquery中如何跳转页面?

$.post(url,{name:'xxx',psw:'xxx'}, function(result)
           {
                if (result)
                {
                    //跳转至php页面 
                }
           }, 'json'); 
           
如何跳转至php页面?
阅读 5.5k
6 个回答
window.location.href="";
window.location = "http://www.42du.cn";

window.location.href = "";

Window.open('')

新开页面:Window.open('url');
当前页面打开:window.location.href="url";

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题