History.js IE9 和 FF3 中的操作方法问题和行为
我想使用 History.js 但它无法按预期工作,而且我不确定我是否以正确的方式执行...
这就是我所做的:
<!-- jQuery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<!-- jQuery UI -->
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<!-- jQuery ScrollTo Plugin -->
<script defer src="mySite/js/jquery.scrollto.min.js"></script>
<!-- JSON2 Plugin -->
<script type="text/javascript">if ( typeof window.JSON === 'undefined' ) { document.write('<script src="mySite/js/json2.js"><\/script>'); }</script>
<!-- jQuery ScrollTo Plugin -->
<script src="mySite/js/amplify.store.min.js"></script>
<!-- History.js -->
<script defer src="mySite/js/history.adapter.jquery.js"></script>
<script defer src="mySite/js/history.js"></script>
<script defer src="mySite/js/history.html4.js"></script>
<!-- ajaxify-mySite.js -->
<script defer src="mySite/js/ajaxify-mySite.js"></script>
ajaxify-mySite.js 脚本与显示的基本相同 这里
这就是问题所在:
在 IE9 中,我得到类似“http://www.mySite.com/index.php/tools.html#index.php/contact.html?&_suid=478”(应该是“http://www.mySite.com/index.php#contact.html?&_suid=478" 我认为)并且内容大部分时间都不会加载..
我的FF3.6.21 在不使用此脚本的情况下加载所有页面 - 这是正常行为吗?
谢谢!
I would like to use History.js but it doesn't work as expected and I'm not sure if I do it the right way...
Here is what I did:
<!-- jQuery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<!-- jQuery UI -->
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<!-- jQuery ScrollTo Plugin -->
<script defer src="mySite/js/jquery.scrollto.min.js"></script>
<!-- JSON2 Plugin -->
<script type="text/javascript">if ( typeof window.JSON === 'undefined' ) { document.write('<script src="mySite/js/json2.js"><\/script>'); }</script>
<!-- jQuery ScrollTo Plugin -->
<script src="mySite/js/amplify.store.min.js"></script>
<!-- History.js -->
<script defer src="mySite/js/history.adapter.jquery.js"></script>
<script defer src="mySite/js/history.js"></script>
<script defer src="mySite/js/history.html4.js"></script>
<!-- ajaxify-mySite.js -->
<script defer src="mySite/js/ajaxify-mySite.js"></script>
The ajaxify-mySite.js script is mostly the same as it is shown here
Thats whats going wrong:
In IE9 I get urls like "http://www.mySite.com/index.php/tools.html#index.php/contact.html?&_suid=478" (it should be "http://www.mySite.com/index.php#contact.html?&_suid=478" I think) and the content won't load the most time..
My FF3.6.21 loads all pages without using this script - is this normal behaviour?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论