简体   繁体   English

如何在Jquery中开始使用DataTable

[英]how to start on using DataTable in Jquery

I am trying to learn Java and Javascript. 我正在尝试学习Java和Javascript。 Currently I following MVC, where i have servlets that will send data from a table to a JSP and I disply the data in table. 目前我跟随MVC,我有servlet将数据从表发送到JSP,我显示表中的数据。

i am trying to make this table editable and create a good look and feel of the table using DataTable, however i am not sure how or where to start..Can someone please help me on this. 我正在尝试使这个表可编辑并使用DataTable创建表的良好外观和感觉,但我不知道如何或从哪里开始..可以有人请帮助我。 I am a beginner and any simple example on on how to use DataTable would really help? 我是初学者,关于如何使用DataTable的任何简单示例都会有帮助吗?

Thank you! 谢谢!

There are several examples here: http://datatables.net/examples/ 这里有几个例子: http//datatables.net/examples/

Datatables is a great plugin if you want to show the data. 如果要显示数据,Datatables是一个很棒的插件。 But in my experience, it is not simple to interact with the server.. Like... add a new tr and create an instance on database using java. 但根据我的经验,与服务器交互并不简单。就像...添加一个新的tr并使用java在数据库上创建一个实例。 It is complicated this interaction. 这种互动很复杂。

In my experience, I would use primefaces datables: http://www.primefaces.org/showcase-labs/ui/datatableBasic.jsf;jsessionid=1si9n7bh9e6921gz0mj3w42ew3 根据我的经验,我会使用primefaces数据: http//www.primefaces.org/showcase-labs/ui/datatableBasic.jsf; jsessionid = 1si9n7bh9e6921gz0mj3w42ew3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM