1. [代码] [JavaScript]代码 function actionFormatterOrdMetaEntity(value, row, index) { return 'a class="btn btn-xs btn-warning" href="javascript:void(0);" ng-click="modifyMetaEntity2Ord('+ row.orderId + ')"修改/a'+ 'nbspa class="btn bt
1. [代码][JavaScript]代码
function actionFormatterOrdMetaEntity(value, row, index) { return '<a class="btn btn-xs btn-warning" href="javascript:void(0);" ng-click="modifyMetaEntity2Ord(' + row.orderId + ')">修改</a>' + ' <a class="btn btn-xs btn-warning" href="javascript:void(0);" ng-click="deleteMetaEntity2Ord(' + row.orderId+ ',\''+row.opObjType+ '\','+row.ordEntityId+ ','+row.ordAttrId + ')">删除</a>'; } 数值型可以不用单独处理,字符型要用\'来转义成'。