history.js插件-如何使用 [英] history.js plugin - how to use
问题描述
我需要使用history.js插件.
I need a hand with the history.js plugin.
我整理了一个简短的页面来测试功能- http://www.salesmelbourne.com/
I put together a brief page to test the functionality - http://www.salesmelbourne.com/
目前,我正在努力解决以下问题:
-
后退/前进按钮不会重新加载AJAX div-这是我没有添加的额外的history.js函数,还是我需要自己编写此代码?或两者兼有.
Back/forward buttons don't reload the AJAX div - is this an extra history.js function that I haven't added or do I need to code this myself? or both.
我注意到标题更新时它会闪烁-我相信它会短暂显示页面元标题.我可以使它平滑吗?
I notice when the title updates it flashes - I believe its briefly showing the page meta title. Can I make this smooth?
IE(我正在使用版本9)在每个页面更改上都显示一个弹出框,上面写着来自网站的消息",有点像错误,我可以以某种方式对其进行排序吗?
IE (I'm using verison 9) shows a popup box on each page change saying 'message from the website' - kind of like an error - can I sort this somehow?
也在IE(HTML4浏览器)下,我也收到了'suid = 13383514298760299522541335484'等.我不明白为什么需要这样做-我可以删除suid吗?
Also under IE (HTML4 browser) I'm getting the 'suid=13383514298760299522541335484' etc. I don't see why I would need this - can I remove the suid?
感谢堆
推荐答案
history.js插件不能很好地工作...这是一个好主意,我仍然感谢作者的尝试,但几乎没有案例网站会使用它:
history.js plugin doesn't work very well... its a good idea and I would still give the author credit for his attempts but almost none of the cased sites use it:
https://github.com/browserstate/history.js/wiki/Showcase
和对HTML4的支持只会给我IE错误.
and the HTML4 support just gives me IE errors.
如果您正在寻找这样的解决方案,我的建议是编写自己的解决方案以适合您所构建的网站...
My advise if you looking for a solution like this is to write you own solution to suit the site you building...
这篇关于history.js插件-如何使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!