jqGrid 自定义操作 带多个参数
var strmodify = "<a href='javascript:;' goods_id='" + rowData.id + "' onclick='addOrEdit(this," + rowData.id + ")'><i class='fa fa-pencil'></i>修改</a>";
/*新增和修改*/ function addOrEdit(obj) { console.log(obj); var url = addUrl; var id = arguments[1]; console.log(id); var title = '新增品牌'; if (id != undefined) { title = '修改货道'; url = editUrl + "?id=" + id; } _esOpendialogmini(url, title); }