Deep linking with Ajax does not work with latest - jquery address

那年仲夏 提交于 2019-12-11 10:47:01

问题


I would like to know why jquery address is not working with the latest jQuery verison, or maybe what I'm doing wrong. I mean the samples given in the download folder are working well. But they are with an older jQuery verison. So I think it's broken with the latest, but I'm not quite sure.

Here some more details about that issue:https://github.com/asual/jquery-address/issues/196

The other question would be, if there is any other good addon for deep linking. I mean I would like to do everything on that site with Ajax and keeping a good structure. Already found the BBQ tool but that depricated.


回答1:


First of all you always should load jQuery before you load any jQuery plugins. In the linked example you do it in the wrong order. But regarding to the error you got you probably did it right while testing.

The next problem is that jQuery.address makes use of jQuery.browser which has been removed since jQuery 1.9. In order to circumvent such issues and make migration a lot easier, there is a jQuery migration plugin that provides missing functions from older jQuery versions.

<script src="jquery-2.1.3.js"></script>
<script src="jquery-migrate-1.2.1.js"></script>
<script src="jquery.address-1.5.js?strict=false&wrap=true"></script>


来源:https://stackoverflow.com/questions/28495507/deep-linking-with-ajax-does-not-work-with-latest-jquery-address

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!