是否有相当于 YUI、ASP.NET 或 Google DataSource 的 jQuery?

发布于 2024-08-19 18:30:38 字数 454 浏览 5 评论 0原文

我喜欢 YUI 框架 的原因之一是 数据源 控件。一个常见的小部件,可以智能地从各种来源获取数据并以标准方式插入其他 UI 小部件。所以...您将表格数据提取到数据源中,然后可以选择将该数据插入表格、图表、自动完成小部件、直接列表中。一切都很好。

jQuery 中似乎没有类似的东西。这是正确的吗?

看起来每个小部件本质上都实现了自己的数据源或依赖于以特定格式提供的数据。

我显然错过了一些东西。

[我在这里强调了 YUI,但是“DataSource”当然不是 Yahoo 特有的 - 它只是 MVC 的工作方式]

One of the things I like about the YUI framework is the DataSource control. A common widget that intelligently gets data from a variety of sources and plugs into other UI widgets in a standard way. So... you fetch tabular data into a DataSource and then have the option of plugging that data into a table, a chart, an autocomplete widget, a straight list. All fine.

There doesn't appear to be an equivalent in jQuery. Is that correct?

It looks like each widget essentially implements their own datasource or relies on data being provided in a particular format.

I've clearly missed something.

[I've highlighted YUI here, but of course a "DataSource" isn't a Yahoo special - it's just the MVC way of working]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

垂暮老矣 2024-08-26 18:30:38

看来我得回答我自己的问题了。 :)

我用 Google 搜索并搜索了 jQuery 论坛,但没有遇到与 Yahoo、.NET 和 Google javascript 框架中相同类型(和名称)的独立 DataSource 插件。

我猜其原因是其他框架是从中心控制的,因此可以指示它们的小部件将遵循其特定的 DataSource 对象。

对于 jQuery,集中控制并不完全在 Yahoo/Google/Microsoft 级别(值得庆幸的是),因此每个插件本质上都会创建自己的“数据源”对象来满足其特定要求。

“有一天/也许”列表中的一些东西。

Looks like I'm going to have to answer my own question. :)

I've Googled around and searched through the jQuery forums and I haven't come across a standalone DataSource plugin of the same type (and name) that's found in the Yahoo, .NET, and Google javascript frameworks.

I guess the reason for this is that the other frameworks are controlled from the centre and so can dictate that their widgets will defer to their particular DataSource object.

With jQuery the centralised control isn't quite at the Yahoo/Google/Microsoft level (thankfully) and so each plugin essentially creates their own 'DataSource' object to suit their particular requirements.

Something for the "Someday/Maybe" list.

最初的梦 2024-08-26 18:30:38

仅供参考 SmartClient (http://www .smartclient.com/docs/7.0rc2/a/b/c/go.html#class..DataSource) 和 SmartGWT 完全支持各种小部件(如网格、树)的数据源和数据绑定组件的概念、日历、平铺视图、表单和其他组件。但是,不幸的是,jQuery 不支持这样的概念。

fyi SmartClient (http://www.smartclient.com/docs/7.0rc2/a/b/c/go.html#class..DataSource) and SmartGWT fully support the notion of DataSources and DataBound components for a wide variety of widgets like Grid, Tree, Calendar, Tile Views, Forms and other components. But yeah, jQuery unfortunately does not support such a concept.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文