thinkPHP5.0中使用header跳转没作用

  我在controller中的方法中这样写:

header("Location:".$url);

  但是一直没动静,不会跳转,最后还是官方文档解决了 https://www.kancloud.cn/manual/thinkphp5/118051

  使用

$this->redirect($url,302);

但是不明白为什么

猜你喜欢

转载自www.cnblogs.com/ningqing2015/p/9958002.html