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

2024-11-01 22:35:04
推荐回答(1个)
回答1:

您好:得到datagrid的数据有好几种。
getData() Return the loaded data.
getRows() Return the current page rows.
getFooterRows() Return the footer rows.
getRowIndex() Return the specified row index, the row parameter can be a row record or an id field value.
getChecked() Return all rows where the checkbox has been checked. This method is available since version 1.3.
getSelected() Return the first selected row record or null.
getSelections() Return all selected rows, when no record selected, am empty array will return.
传到后台的话直接ajax提交即可。