jQuery table plugin reponsetable (original work)

Add-ons
2026-07-26 04:29 5 次浏览 • 0 次下载 15.8KB
jQuery table plugin reponsetable (original work)

Last updated: 2019/8/27 10:38:53 AM

Changelog:1. Optimized the table by adding editing functionality. The table updates according to the entered content.


Last updated: 2019-08-19 21:43:45

1. Load the table: reponse.rendertable(tableobj,tableid); // tableobj contains basic table information. tableid is the table ID.

2. Add a row: reponse.addtr(obj,tableid) // obj contains the new row data.

3. Delete a row: reponse.tr(row) // row is the current row object.

4. Edit the current row and update its data: reponse.editsavetr(obj,tableid) // obj is the selected current row object.

5. Move up: reponse.moveuptr(row,tableid) // row is the current row to be moved.

6. Move down: reponse.moveDown(row,tableid)

7. Export to Excel: reponse.JSONToCSVConvertor(JSONData, ShowLabel,titlename); // JSONData is the current table data object, ShowLabel specifies whether to display the header, and titlename is the exported Excel file name.

8. Get all table data: $("#"+tableid).data("tableObj");

9. Reload table data: reponse.reloadtable(data,tableid) // data contains the updated tbody data.

星河码客

发现和分享优质开源项目,传承互联网精神,为开发者服务。

关于本站

联系我们

微信/广告合作:ITcloub (备注星河码客)

免责声明:本站资源版权归原作者所有,仅供学习与交流。如有侵权,请通过「关于我们 - 侵权投诉」联系删除。

Powered by Nuxt · Deployed on Cloudflare