/**
     * 跳转方法
     * @param $msg
     * @param null $path
     * @param null $parent
     */
    public function alert($msg,$path=NULL,$parent=NULL){
        if($parent === true){
            $str=<<<str
        <script>alert('{$msg}');parent.location.href='{$path}'</script>
str;
        }else if(empty($path)){
            $str=<<<str
        <script>alert('{$msg}');history.back()</script>
str;
        }else{
            $str=<<<str
        <script>alert('{$msg}');location.href='{$path}'</script>
str;
        };
        echo $str;
    }

 

相关文章:

  • 2021-05-17
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2021-12-12
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-01-21
相关资源
相似解决方案