var obj_inserted = JSON.stringify($('#tt').datagrid('getChanges', "inserted"));
alert(obj_inserted.length);
获取不到数据
http://www.cnblogs.com/langhua/p/3672936.html