Heim > Fragen und Antworten > Hauptteil
{
field: 'nums',
title: '数量',
align: 'center',
sortable: true,
editable: {
type: 'text',
url: '/repertory/fittings/returnjson',
pk:1,
title: '数量',
validate: function (value) {
value = $.trim(value);
if (!value) {
return 'This field is required';
}
success: function(response, newValue) {
if(response.status =='error') {
return response.msg;
}
}
}
我想在后台上获取到修改后的值与对应的行的id