jQuery表格插件reponsetable
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数据。