問題:寫個跳轉等待頁面,而後發現返回的時候,頁面跳轉回等待頁面,沒有正確返回url
思路:按照PJAX的思路,更改historycode
<script> $(function($) { layer.open({ type: 2 ,content: '加載中' }); //更改等待頁面的history爲前一個頁面 history.replaceState({},'',document.referrer); //更改等待頁面的history爲前一個頁面 location.replace("{$url|default=''}"); }) </script>