发布完文章自动跳转进去如何实现

WBOY
Release: 2016-06-13 09:58:53
Original
671 people have browsed it

发布完文章自动跳转进去怎么实现
正常情况下我之前做的都是发布成功就js跳转一个history.go(-1)。
但是现在又觉得这样做不太合理,应该发布完直接跳转过去会好很多,我见到的最多的是发布完之后让你等3秒,然后自动跳转。也有的像csdn这样的发布完让你手动选择。

那种发布完3秒后自动跳转是怎么做的??

------解决方案--------------------

探讨

通常三种:
1. html head标签中加入

2. php
header('Refresh: 3; url=http://www.baidu.com');

3. js 采用JavaScript延时跳转方案了,如下:
window.setTi……
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!