html - 在flask中 bootstrap x-editable 怎样提交修改后的数据到后台?
PHP中文网
PHP中文网 2017-04-18 09:56:47
0
0
335

{

            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中文网

认证高级PHP讲师

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template