1、前段跳转代码 top.location.href='/admin/login' 2、PHP未登录跳转代码 return "<script>top.location.href='/a/login'</script>";