history.back(-1):直接返回當前頁的上一頁,數據全部消息,是個新頁面
history.go(-1):也是返回當前頁的上一頁,不過表單里的數據全部還在
history.back(1) 前進
history.back(-1) 后退
window.location.reload(); //刷新
window.history.go(1); //前進
window.history.go(-1); //返回+刷新
window.history.forward(); //前進
window.history.back(); //返回