$(function(){
$("#equipment_grid").jqGrid({
url:'<%=request.getContextPath()%>/equipment/list/json',
datatype : 'json',
mtype : 'GET',
colNames : [ 'id', 'name', 'ip', 'port', 'username', 'password',
'updateTime' ],
colModel : [ {
name : 'id',
index : 'id',
jsonmap : 'id',
width : 55,
editable : true
name : 'name',
index : 'name',
jsonmap : 'name',
width : 55,
editable : true
name : 'ip',
index : 'ip',
jsonmap : 'ip',
width : 90,
editable : true
name : 'port',
index : 'port',
jsonmap : 'port',
width : 80,
align : 'right',
editable : true
name : 'username',
index : 'username',
jsonmap : 'username',
width : 80,
align : 'right',
editable : true
name : 'password',
index : 'password',
jsonmap : 'password',
width : 80,
align : 'right',
editable : true
name : 'updateTime',
index : 'updateTime',
jsonmap : 'updateTime',
datefmt : 'yyyy-MM-dd HH:mm:ss',
formatter : 'date',
formatoptions : {
newformat : 'Y-m-d H:i:s'
width : 150,
sortable : false,
editable : true
pager : '#equipment_pager',
rowNum : 10,
rowList : [ 10, 20, 30 ],
sortname : 'id',
sortorder : 'desc',
jsonReader : {
root : "equipments",
page : "page",
total : "total",
records : "records",
repeatitems : false
viewrecords : true,
caption : '设备列表'
jQuery("#equipment_grid").jqGrid('navGrid', '#equipment_pager', {
view : true,
edit : true,
add : true,
del : true
},{ url: '/equipment/update/{id}', mtype: 'PUT'},
{ url: '/equipment/insert', mtype: 'POST'},
{ url: '/equipment/delete/{id}', mtype: 'DELETE'});
如上代码,请问如何传值能动态替换掉{ url: '/equipment/update/{id}', mtype: 'PUT'}部分里面的{id}为colModel的id呢?
{top: -200, left: 400, reloadAfterSubmit: true, jqModal: false, closeAfterAdd: true,
onclickSubmit: function(params, postdata) { // add compact_id
var pid = myGrid.jqGrid('getGridParam','selrow') || opt.actRowid; // 确保能取到master grid的rowid!
if (pid <= 0) {
alert('请先选择合同!');
postdata.id = 0;
return {};
postdata.id = pid;
return postdata;
afterComplete: function(response, postdata, formid) {
myGrid.trigger('reloadGrid');
afterSubmit: function(xhr, postdata) {
return jqg_form_resp(xhr, postdata, '添加失败!');
}, // add options
2019-07-17 19:52:10
企业邮箱发送邮件时,若出现投递失败产生退信,内容提示包含如下: the mta server of * reply:550 failed to meet SPF requirements 或者 the mta server of 163.com — 163mx01.mxmail.netease.com(220.181.14.141) reply:550 MI:SPF mx14,QMCowECpA0qTiftVaeB3Cg—.872S2 1442548128 http://mail.163.com/help
302568