jquery 添加列

{field:'action',title:'操作',70,align:'center'
formatter:function(value,row,index){ 
if (row.editing){ 
var s = '<a href="#" onclick="saverow('+index+')">保存</a> '
var c = '<a href="#" onclick="cancelrow('+index+')">取消</a>'
return s+c; 
else 
var e = '<a href="#" onclick="editrow('+index+')">编辑</a> '
var d = '<a href="#" onclick="deleterow('+index+')">删除</a>'
return e+d; 
原文地址:https://www.cnblogs.com/pengyanfu/p/3301261.html