gpt4 book ai didi

Javascript Tablemodel 小部件

转载 作者:行者123 更新时间:2023-12-02 20:43:31 27 4
gpt4 key购买 nike

我正在寻找类似于Java Swing TableModel的JavaScript MVC表格小部件

我还想要两种模型,一种完全本地的,一种远程的(XMLHttpRequest)

我还希望 View 接受文本列(也许还有 HTML 列),并根据单元格内容对这些文本列进行 HTML 或 CSS 格式化(就像在 Java Swing JTable 中一样)

你知道有什么实现吗?

最佳答案

我想您可以使用这些组件自己制作,这些组件都可以部分解决您的问题

http://jamal-mvc.com/ -> 轻量级MVC

Jamal is a set of conventions and small javascript libraries to archieve a complete separation of html, css and javascript in your web application. Jamal is built on jQuery and inspired by MVC frameworks like Ruby on Rails, CakePHP and its derivatives.

The MVC concept is easy to adopt for javascript

Controller: Interaction with the user interface (events)

Model: Business Logic and AJAX calls

View: DOM, CSS modifications

ActiveRecord JS -> 数据库连接器

ActiveRecord.js is a cross browser, cross platform, stand-alone object relational mapper. It shares a very similar vocabulary to the Ruby ActiveRecord implementation, but uses JavaScript idioms and best practices -- it is not a direct port. It can operate using an in memory hash table, or with a SQL back end on the Jaxer platform (SQLite and MySQL), Adobe's AIR (SQLite) and Google Gears (SQLite). Support for the HTML 5 SQL storage spec is planned.

jQuery tablesorter Plugin -> 显示表格数据(也许你需要检查它是否支持或可以轻松支持可编辑单元格)

关于Javascript Tablemodel 小部件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1886324/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com