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 数据。
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系maynote@foxmail.com处理
码云笔记 » jQuery表格插件reponsetable
码云笔记 » jQuery表格插件reponsetable
![](https://media.mybj123.com/wp-content/uploads/2024/02/1706962282-d2a91681b352c3a.png)