//JS跳转页面
function gourl($iAlert,$iPage,$history='',$target="window")
{
    if ($iAlert != "") {
        echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
        echo '<script language="javascript">alert("'.$iAlert.'")</script>';
    }
    if ($iPage != "") {
        echo '<script language="javascript">'.$target.'.location.href = "'.$iPage.'";</script>';
        exit;
    }
    if ($history != "") {
        echo '<script language="javascript">history.go('.$history.');</script>';
        exit;
    }
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-08
  • 2022-12-23
  • 2021-09-21
  • 2022-01-15
  • 2022-12-23
相关资源
相似解决方案