Disable the hash change controller in JQuery mobile UI and replace with backbone.js

拜拜、爱过 提交于 2019-12-05 21:54:35

问题


I'm using JQuery Mobile UI and the widgit kit is nice. However I'm also using backbone.js which comes with a really neat hashchange controller framework. Problem is that JQuery Mobile UI has an inbuilt crappy hash change controller which assumes you willl always want to make an AJAX query on every hash change and load the content from the server.

Has anybody had any success in just pulling out the widget framework from JQuery Mobile UI?


回答1:


Looks like this has been solved in a current commit to jquery mobile UI.

https://github.com/jquery/jquery-mobile/commit/3162428558efd9960739ef8f00a7ead0dbf6d3ec



来源:https://stackoverflow.com/questions/5531822/disable-the-hash-change-controller-in-jquery-mobile-ui-and-replace-with-backbone

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