禁用jQuery Mobile的UI哈希转换控制和Backbone.js的替换 [英] Disable the hash change controller in JQuery mobile UI and replace with backbone.js

查看:146
本文介绍了禁用jQuery Mobile的UI哈希转换控制和Backbone.js的替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的 jQuery Mobile的用户界面和widgit套件是很好的。不过我还使用其自带的很整洁hashchange控制框架Backbone.js的。问题是,jQuery Mobile的UI内置一个蹩脚的哈希变化控制器,它假定您威尔·总是想使每个哈希改变一个AJAX的查询和负载从服务器上的内容。

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.

有没有人曾在刚刚拔出从jQuery Mobile的用户界面?

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

推荐答案

看起来这已经在目前已经解决了承诺jQuery Mobile的用户界面。

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

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

这篇关于禁用jQuery Mobile的UI哈希转换控制和Backbone.js的替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆