我有一个ajax webapp (JSF2.0),它使用散列进行导航。执行此操作的Javascript代码: lastHash = window.location.hash; // To save a refresh on browsers that don't need it.
var fragment = document.getElementById('
我使用Bens hashchange.js使我的链接看起来像www.site.com/abc.php#123.php,以便在选项卡之间绘制历史记录。这很好用,但我在123.php中也有一个选项卡插件,如果你通过www.site.com/123.php访问页面,它工作得很好,但如果你试图从hashchange链接访问页面,那么选项卡就会损坏。fadeIn(); //Fade in the active ID content});
基于此,我没有看到它检查window
<script type="text/javascript"> var top = $('#rt_outer').offset().top - parseFloat($('#rt_outer').css('marginTop').replace(/auto/, 0)); // what the y position of the scroll is
var