jQuery表格插件reponsetable(原创)

插件特效
2026-07-26 04:29 5 次浏览 • 0 次下载 15.8KB
jQuery表格插件reponsetable(原创)

更新时间:2019/8/27 上午10:38:53

更新说明:1.优化table增加编辑,根据输入内容更改table


更新时间:2019-08-19 21:43:45

1.加载表格 reponse.rendertable(tableobj,tableid); //tableobj为表格基本信息。tableid为table的id

2.新增一行 reponse.addtr(obj,tableid) //obj为新增的数据。

3.删除一行 reponse.tr(row) //row为当前行对象。

4.编辑当前行更新当前行数据 reponse.editsavetr(obj,tableid) //obj为选中当前行对象

5.上移 reponse.moveuptr(row,tableid) //row 为需要移动的当前行

6.下移 reponse.moveDown(row,tableid)

7.导出Excel reponse.JSONToCSVConvertor(JSONData, ShowLabel,titlename); //JSONData为当前table数据对象,ShowLabel是否显示表头,titlename导出excel文件名。

8.获取整个table数据 $("#"+tableid).data("tableObj");

9.重载表格数据 reponse.reloadtable(data,tableid) //data需要更改tbody数据。