Jquery easyui怎么得到datagrid里面的值和传到后台?

144
提问者
2023-03-15 13:19 悬赏 0财富值 阅读 1086回答 1

var insertRows = $('#test').datagrid('getChanges','inserted');\x0d\x0a var up

默认分类
登录 后发表回答
1楼 · 2023-03-15 14:11.采纳回答

var insertRows = $('#test').datagrid('getChanges','inserted');\x0d\x0a var updateRows = $('#test').datagrid('getChanges','updated');\x0d\x0a var deleteRows = $('#test').datagrid('getChanges','deleted');\x0d\x0a var changesRows = {\x0d\x0a inserted : [],\x0d\x0a updated : [],\x0d\x0a deleted : [],\x0d\x0a };\x0d\x0a if (insertRows.length>0) {\x0d\x0a for (var i=0;i0) {\x0d\x0a for (var k=0;k0) {\x0d\x0a for (var j=0;j