问题
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