search

Home  >  Q&A  >  body text

html - 在flask中 bootstrap x-editable 怎样提交修改后的数据到后台?

{

            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
PHP中文网PHP中文网2810 days ago337

reply all(0)I'll reply

No reply
  • Cancelreply