js和php刷新页面的方法

  js中3个最优的刷新页面的方法

    window.location.reload();

    window.history.go(0);

    document.execCommand(''Refresh'');

  php中刷新页面的方法;

    header("location:url");  url指的是当前页面;

    header("refresh:秒数;url=当前页面")  延迟几秒跳转

  meta的跳转方法:

  <meta http-equiv="refresh" content="秒数;url=当前页面"/>  加了延迟的跳转

原文地址:https://www.cnblogs.com/shangjun6/p/10758799.html