日期:2014-05-16 浏览次数:20416 次
//var rows = $('#dg').datagrid('getSelections');
rows = [{ id: 12345, txt: 67890}];
var arr = [];
$(rows).each(function () {
arr[arr.length] = { name: 'id', value: this['id'] };
arr[arr.length] = { name: 'txt', value: this['txt'] };
});
console.log(arr)