问题:写个跳转等待页面,而后发现返回的时候,页面跳转回等待页面,没有正确返回url
思路:按照PJAX的思路,更改historycode
<script> $(function($) { layer.open({ type: 2 ,content: '加载中' }); //更改等待页面的history为前一个页面 history.replaceState({},'',document.referrer); //更改等待页面的history为前一个页面 location.replace("{$url|default=''}"); }) </script>