关于GridPanel中 行操作参数传递的有关问题

关于GridPanel中 行操作参数传递的问题
var outcm = new Ext.grid.ColumnModel(
 [
  {header: '洲',width:50,dataIndex:'area',sortable:true},
  {header: '国家',width:150,dataIndex:'country',sortable:true},
  {header: '城市',width:100,dataIndex:'city',sortable:true},
  {header: '删除',width:50,dataIndex:'city',sortable:true,
  	renderer:function(value, meta, rec, rowIdx, colIdx, ds){
  		return '<a href="#" onclick="delrec(\''+rec+'\',\''+ds+'\')">删除</a>'
  	}
  }
 ]
);



以前只能在行选择的时候传递数字
现在可以传递对象了
原来在传递对象的时候需要添加字符转译