function copyRow() {
var row = grid.getSelected();
if (row) {
var newRow = mini.clone(row);
//delete newRow.id;
//alert(newRow);
grid.setData(mini.decode(newRow));
wansgibo 发表于 2014-7-11 13:29
function copyRow() {
var row = grid.getSelected();
if (row) {
var arr=[]
function copyRow(){
...
...
arr.push(newRow)
..
}
后面你要用就去arr里取出来作者: wansgibo 时间: 2014-7-11 13:49:34
felt 发表于 2014-7-11 13:40
var arr=[]
function copyRow(){
...
var arr= [];
function copyRow() {
var row = grid.getSelected();
if (row) {
var newRow = mini.clone(row);
//delete newRow.id;
//alert(newRow);
grid.addRow(newRow, grid.setData(arr.push(newRow)));
grid.beginEditCell(arr);