<script type="text/javascript">
//拖动的表
var movetable = [{"id":"test","text":"test"}];
var grid = mini.get("datagrid1");
grid.setTotalCount(100);
grid.setData([]);
for (var i = 0; i < 1; i++) {
var newRow = { name: "New Row" };
grid.addRow(newRow, i);
}
< /script>
事件触发后
<script type="text/javascript">
var strSysTable ="测试";
var tabobj = {};
tabobj.id = strSysTable;
tabobj.text = strSysTable;
movetable.push(tabobj);
var index = grid.getData().length
var newRow = { gtable: "new Row" };
grid.addRow(newRow, index);
var data = grid.getData();