简体   繁体   English

使用DataTables的可编辑表,该表使用动态数据源(JSON),然后在进行编辑时更新数据源

[英]Editable Table using DataTables that uses a dynamic data source (JSON) which then updates the data source when edits are made

I am using the Datatables plugin and i am populating it using html which is rendered from a JSON array, however, i need it to render the table from this JSON array and for it to be dynamic so that if an edit is made it then updates the model (datasource) which is stored client side. 我正在使用Datatables插件,并且使用从JSON数组呈现的html来填充它,但是,我需要它来从此JSON数组呈现表,并且要使其具有动态性,以便进行编辑然后更新客户端存储的模型(数据源)。

Each time you go to a new page on the table it renders the html using the data stored in the model (datasource). 每次您转到表上的新页面时,它都会使用存储在模型(数据源)中的数据来呈现html。

I was wondering if this is at all possible using datatables and if anyone could point me in the right direction that would be fantastic! 我想知道使用数据表是否完全有可能,是否有人可以指出正确的方向呢! If you need any more information please let me know! 如果您需要更多信息,请告诉我!

Thank you! 谢谢!

是的,您可以使用数据表编辑器https://editor.datatables.net/对数据表进行此操作

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

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