jQuery Mobile的可筛选选择:不喜欢的工作演示。为什么? [英] Jquery Mobile Filterable Select : Not working like Demo. Why?

查看:167
本文介绍了jQuery Mobile的可筛选选择:不喜欢的工作演示。为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图重现这里看到的功能:
http://view.jquerymobile.com/master/demos/examples/filterable/filter-inside-selectmenu.php

I am trying to reproduce the functionality seen here : http://view.jquerymobile.com/master/demos/examples/filterable/filter-inside-selectmenu.php

基本上,我只是希望能够把一个列表视图风格的搜索过滤器的选择控制在jQuery Mobile的多种选择。

Basically, I just want to be able to put a listview style search filter on select control with many options in jquery mobile.

我使用jQuery和JQM的当前版本,分别是1.10.1和1.3.2。

I am using the current versions of JQuery and JQM, which are 1.10.1 and 1.3.2 respectively.

我创建了一个小提琴,显示发生了什么:
http://jsfiddle.net/LY6EJ/

I have created a fiddle to show what is happening : http://jsfiddle.net/LY6EJ/

现在,当我使用jQuery Mobile的当前版本,我得到下面28行错误,使用Javascript运行时错误:对象不支持此属性或方法

Now, when I use the current version of JQuery Mobile, I get an error on line 28 below, Javascript Runtime Error : Object doesn't support this property or method.

 // Instantiate a filterable widget on the newly created listview and
 // indicate that the generated input is to be used for the filtering.
 listview.filterable({ input: input });

现在,如果我转而使用jQuery Mobile的副本,他们有演示页上,驻留在:的 http://view.jquerymobile.com/master/js ,疯狂的事情的作品,它只是打破了我所有的其他jQuery Mobile的相关功能。

Now, if I instead use the copy of jquery mobile that they have on the demo page, which resides at : http://view.jquerymobile.com/master/js, the crazy thing works, it just breaks all of my other jquery mobile related functionality.

他们正在使用不具有版标识符脚本。我希望这里有人知道JavaScript的不够好,找出他们做了什么,或者我没有这样做才有意义。也许他们包括另一插件创建小部件或修改后的脚本类似的东西?预先感谢任何帮助你可以给。

The script they are using does not have a Version identifier. I am hoping someone here knows javascript well enough to figure out what they did, or what I didn't do that will make sense. Maybe they included another plugin to create widgets or something similar in the modified script? Thanks in advance for any help you can give.

推荐答案

的问题是,该演示是在Alpha测试的一部分。显然JQM有释放的每个版本不同的演示门户。在演示的功能present不会被释放,直到1.4倍

The issue was that the demo was part of the Alpha test. Evidently JQM has separate demo portals for each version released. The functionality present in the Demo will not be released until 1.4x

这篇关于jQuery Mobile的可筛选选择:不喜欢的工作演示。为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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